diff options
author | 2024-05-06 12:17:43 +0200 | |
---|---|---|
committer | 2024-05-06 12:23:44 +0200 | |
commit | ea64e4f63af7a7af1bde869ff6acd9203122b151 (patch) | |
tree | 8918a04ce16b651b318bba4b0f76f33c6cd369a7 /wgpu | |
parent | 547446f0de076149a4c61e6a4179308b266fd9fd (diff) | |
download | iced-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.rs | 3 |
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( |