Fix windows fighting over shared image::Cache
Image caches are local to each window now.
This commit is contained in:
parent
a94984d681
commit
547446f0de
8 changed files with 77 additions and 70 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue