diff options
author | 2022-01-02 19:21:52 +0100 | |
---|---|---|
committer | 2022-01-02 19:21:52 +0100 | |
commit | bc26b52044e41f627addd337a65fe5f9838ff09d (patch) | |
tree | 5040a91d2ff9651cf369fd6caed1497f523f6432 /examples/integration_opengl/src/scene.rs | |
parent | 5466d6a11d0a4bee01e954b7c727b3fd67cea02a (diff) | |
download | iced-bc26b52044e41f627addd337a65fe5f9838ff09d.tar.gz iced-bc26b52044e41f627addd337a65fe5f9838ff09d.tar.bz2 iced-bc26b52044e41f627addd337a65fe5f9838ff09d.zip |
Fix memory leak in opengl integration example
Diffstat (limited to 'examples/integration_opengl/src/scene.rs')
-rw-r--r-- | examples/integration_opengl/src/scene.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/integration_opengl/src/scene.rs b/examples/integration_opengl/src/scene.rs index ccca0d29..a1245bf2 100644 --- a/examples/integration_opengl/src/scene.rs +++ b/examples/integration_opengl/src/scene.rs @@ -86,6 +86,8 @@ impl Scene { pub fn draw(&self, gl: &glow::Context) { unsafe { + gl.bind_vertex_array(Some(self.vertex_array)); + gl.use_program(Some(self.program)); gl.draw_arrays(glow::TRIANGLES, 0, 3); } } |