Prevent gratuitous resizing in integration example
If I didn't miss anything, that `resized` variable is never set back to `false`, meaning that swapchain recreation is retriggered every frame after the first resize.
This commit is contained in:
parent
94af348846
commit
99eda093d6
1 changed files with 2 additions and 0 deletions
|
|
@ -144,6 +144,8 @@ pub fn main() {
|
|||
present_mode: wgpu::PresentMode::Mailbox,
|
||||
},
|
||||
);
|
||||
|
||||
resized = false;
|
||||
}
|
||||
|
||||
let frame = swap_chain.get_next_texture().expect("Next frame");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue