mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[rs] Merge #434
434: recreate swapchain on framework.rs examples on resize, ref #352 r=kvark,cwfitzgerald a=m4b There still seem to be residual race condition like errors w.r.t. resizing on at least x11, but this does fix the panic on x11. Co-authored-by: m4b <m4b.github.io@gmail.com>
This commit is contained in:
@@ -237,6 +237,7 @@ fn start<E: Example>(
|
||||
sc_desc.width = size.width;
|
||||
sc_desc.height = size.height;
|
||||
example.resize(&sc_desc, &device, &queue);
|
||||
swap_chain = device.create_swap_chain(&surface, &sc_desc);
|
||||
}
|
||||
event::Event::WindowEvent { event, .. } => match event {
|
||||
WindowEvent::KeyboardInput {
|
||||
|
||||
Reference in New Issue
Block a user