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:
Cedric Hutchings 2020-06-02 16:40:46 -04:00 committed by GitHub
parent 94af348846
commit 99eda093d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,6 +144,8 @@ pub fn main() {
present_mode: wgpu::PresentMode::Mailbox,
},
);
resized = false;
}
let frame = swap_chain.get_next_texture().expect("Next frame");