diff options
author | 2022-01-03 12:03:07 +0700 | |
---|---|---|
committer | 2022-01-03 12:03:07 +0700 | |
commit | 14c9380ddd2923e4c083c65c9851c705c51dd6ce (patch) | |
tree | 5040a91d2ff9651cf369fd6caed1497f523f6432 /examples/integration_opengl/src/main.rs | |
parent | 5466d6a11d0a4bee01e954b7c727b3fd67cea02a (diff) | |
parent | bc26b52044e41f627addd337a65fe5f9838ff09d (diff) | |
download | iced-14c9380ddd2923e4c083c65c9851c705c51dd6ce.tar.gz iced-14c9380ddd2923e4c083c65c9851c705c51dd6ce.tar.bz2 iced-14c9380ddd2923e4c083c65c9851c705c51dd6ce.zip |
Merge pull request #1181 from feylinara/feylinara/issue1087
Fix memory leak in opengl integration example
Diffstat (limited to 'examples/integration_opengl/src/main.rs')
-rw-r--r-- | examples/integration_opengl/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/integration_opengl/src/main.rs b/examples/integration_opengl/src/main.rs index 3b63f22e..551aba67 100644 --- a/examples/integration_opengl/src/main.rs +++ b/examples/integration_opengl/src/main.rs @@ -73,8 +73,9 @@ pub fn main() { ); let mut resized = false; + let scene = Scene::new(&gl, &shader_version); + event_loop.run(move |event, _, control_flow| { - let scene = Scene::new(&gl, &shader_version); *control_flow = ControlFlow::Wait; match event { |