summaryrefslogtreecommitdiffstats
path: root/wgpu/src/window
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-06 12:14:42 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-06 12:23:44 +0200
commit547446f0de076149a4c61e6a4179308b266fd9fd (patch)
treeaf7a1a6a731d0d65d4a2fc2c733a0f0f7b889f7a /wgpu/src/window
parenta94984d681875146d7af9f568bf8713503c1ca96 (diff)
downloadiced-547446f0de076149a4c61e6a4179308b266fd9fd.tar.gz
iced-547446f0de076149a4c61e6a4179308b266fd9fd.tar.bz2
iced-547446f0de076149a4c61e6a4179308b266fd9fd.zip
Fix windows fighting over shared `image::Cache`
Image caches are local to each window now.
Diffstat (limited to 'wgpu/src/window')
-rw-r--r--wgpu/src/window/compositor.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/wgpu/src/window/compositor.rs b/wgpu/src/window/compositor.rs
index 095afd48..baf9f315 100644
--- a/wgpu/src/window/compositor.rs
+++ b/wgpu/src/window/compositor.rs
@@ -290,6 +290,7 @@ impl graphics::Compositor for Compositor {
fn create_renderer(&self) -> Self::Renderer {
Renderer::new(
+ &self.device,
&self.engine,
self.settings.default_font,
self.settings.default_text_size,