From dc1cb9e625abfd0891ee72c3b44f4f471bfa2b96 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 19 Jul 2015 10:49:56 -0600 Subject: [PATCH] Tweak --- examples/opengl3_example/imgui_impl_glfw_gl3.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/opengl3_example/imgui_impl_glfw_gl3.cpp b/examples/opengl3_example/imgui_impl_glfw_gl3.cpp index 232757d2..8e5ba76d 100644 --- a/examples/opengl3_example/imgui_impl_glfw_gl3.cpp +++ b/examples/opengl3_example/imgui_impl_glfw_gl3.cpp @@ -286,9 +286,7 @@ void ImGui_ImplGlfwGL3_Shutdown() if (g_VaoHandle) glDeleteVertexArrays(1, &g_VaoHandle); if (g_VboHandle) glDeleteBuffers(1, &g_VboHandle); if (g_ElementsHandle) glDeleteBuffers(1, &g_ElementsHandle); - g_ElementsHandle = 0; - g_VaoHandle = 0; - g_VboHandle = 0; + g_VaoHandle = g_VboHandle = g_ElementsHandle = 0; glDetachShader(g_ShaderHandle, g_VertHandle); glDeleteShader(g_VertHandle);