summaryrefslogtreecommitdiffstats
path: root/benches
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 /benches
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 'benches')
-rw-r--r--benches/wgpu.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/benches/wgpu.rs b/benches/wgpu.rs
index 3dd415db..2d308666 100644
--- a/benches/wgpu.rs
+++ b/benches/wgpu.rs
@@ -70,7 +70,8 @@ fn benchmark(
Some(Antialiasing::MSAAx4),
);
- let mut renderer = Renderer::new(&engine, Font::DEFAULT, Pixels::from(16));
+ let mut renderer =
+ Renderer::new(&device, &engine, Font::DEFAULT, Pixels::from(16));
let viewport =
graphics::Viewport::with_physical_size(Size::new(3840, 2160), 2.0);