summaryrefslogtreecommitdiffstats
path: root/examples/integration
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 /examples/integration
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 'examples/integration')
-rw-r--r--examples/integration/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/integration/src/main.rs b/examples/integration/src/main.rs
index c4b57ecf..c2833210 100644
--- a/examples/integration/src/main.rs
+++ b/examples/integration/src/main.rs
@@ -157,7 +157,7 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut debug = Debug::new();
let mut engine = Engine::new(&adapter, &device, &queue, format, None);
let mut renderer =
- Renderer::new(&engine, Font::default(), Pixels::from(16));
+ Renderer::new(&device, &engine, Font::default(), Pixels::from(16));
let mut state = program::State::new(
controls,