diff options
author | 2020-06-02 16:40:46 -0400 | |
---|---|---|
committer | 2020-06-02 16:40:46 -0400 | |
commit | 99eda093d6f3df8528fe442c89ebf86422d8c9cd (patch) | |
tree | 99cedbf1cd2f16b35a0b306b34708eecdf05e875 /examples | |
parent | 94af34884667e78e231fb1904ae3e9fa785c9a7a (diff) | |
download | iced-99eda093d6f3df8528fe442c89ebf86422d8c9cd.tar.gz iced-99eda093d6f3df8528fe442c89ebf86422d8c9cd.tar.bz2 iced-99eda093d6f3df8528fe442c89ebf86422d8c9cd.zip |
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.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/integration/src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/integration/src/main.rs b/examples/integration/src/main.rs index c1fe8f69..2b0874e3 100644 --- a/examples/integration/src/main.rs +++ b/examples/integration/src/main.rs @@ -144,6 +144,8 @@ pub fn main() { present_mode: wgpu::PresentMode::Mailbox, }, ); + + resized = false; } let frame = swap_chain.get_next_texture().expect("Next frame"); |