mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Merge #1254
1254: Fix swapchain resize in the player r=kvark a=kvark
**Connections**
Fixes 1253
**Description**
I was fixing this recently, and I'm not sure how it worked, because there is a big inner `loop` that I didn't notice before 😅 .
So now we exit the inner loop upon resize.
**Testing**
Tested on the supplied API trace
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
This commit is contained in:
commit
763c14a6d9
@ -144,6 +144,7 @@ fn main() {
|
|||||||
desc.height,
|
desc.height,
|
||||||
));
|
));
|
||||||
resize_desc = Some(desc);
|
resize_desc = Some(desc);
|
||||||
|
break;
|
||||||
} else {
|
} else {
|
||||||
gfx_select!(device => global.device_create_swap_chain(device, surface, &desc)).unwrap();
|
gfx_select!(device => global.device_create_swap_chain(device, surface, &desc)).unwrap();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user