Trim image::Cache after wgpu::Renderer::present

This commit is contained in:
Héctor Ramón Jiménez 2024-05-06 12:17:43 +02:00
parent 547446f0de
commit ea64e4f63a
No known key found for this signature in database
GPG key ID: 4C07CEC81AFA161F

View file

@ -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(