From bc26b52044e41f627addd337a65fe5f9838ff09d Mon Sep 17 00:00:00 2001 From: Fey Naomi Schrewe Date: Sun, 2 Jan 2022 19:21:52 +0100 Subject: Fix memory leak in opengl integration example --- examples/integration_opengl/src/scene.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/integration_opengl/src/scene.rs') 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); } } -- cgit