Skip to content

Commit

Permalink
Trim image::Cache after wgpu::Renderer::present
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed May 6, 2024
1 parent 547446f commit ea64e4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ea64e4f

Please sign in to comment.