Fix memory leak in opengl integration example
This commit is contained in:
parent
5466d6a11d
commit
bc26b52044
2 changed files with 4 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue