summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-06-02 23:10:46 +0200
committerLibravatar GitHub <noreply@github.com>2020-06-02 23:10:46 +0200
commit4c494c724435d05d1b46d19bf890a8aaef962b15 (patch)
tree0f22902d6db0a83fb35f6a7905f880ce0ab3f426 /examples
parente7f0d3809b0648d1b05e85df61d943e0f2d4658d (diff)
parentd5b9dee2fdc44b843f1048140035404d4e036669 (diff)
downloadiced-4c494c724435d05d1b46d19bf890a8aaef962b15.tar.gz
iced-4c494c724435d05d1b46d19bf890a8aaef962b15.tar.bz2
iced-4c494c724435d05d1b46d19bf890a8aaef962b15.zip
Merge pull request #383 from cedric-h/patch-1
Prevent gratuitous resizing in integration example
Diffstat (limited to 'examples')
-rw-r--r--examples/integration/src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/integration/src/main.rs b/examples/integration/src/main.rs
index c1fe8f69..6b4aa968 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");