summaryrefslogtreecommitdiffstats
path: root/wgpu
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-06 12:17:43 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-06 12:23:44 +0200
commitea64e4f63af7a7af1bde869ff6acd9203122b151 (patch)
tree8918a04ce16b651b318bba4b0f76f33c6cd369a7 /wgpu
parent547446f0de076149a4c61e6a4179308b266fd9fd (diff)
downloadiced-ea64e4f63af7a7af1bde869ff6acd9203122b151.tar.gz
iced-ea64e4f63af7a7af1bde869ff6acd9203122b151.tar.bz2
iced-ea64e4f63af7a7af1bde869ff6acd9203122b151.zip
Trim `image::Cache` after `wgpu::Renderer::present`
Diffstat (limited to 'wgpu')
-rw-r--r--wgpu/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs
index 35da3211..ad8ac591 100644
--- a/wgpu/src/lib.rs
+++ b/wgpu/src/lib.rs
@@ -125,6 +125,9 @@ impl Renderer {
self.triangle_storage.trim();
self.text_storage.trim();
+
+ #[cfg(any(feature = "svg", feature = "image"))]
+ self.image_cache.borrow_mut().trim();
}
fn prepare(