From 73e2d56accf5fc7dbad1e12116c35007bb8f46a8 Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 6 Apr 2015 10:45:10 +0100 Subject: [PATCH] Examples: OpenGL fixed-pipeline: added glBindTexture(0), via Anton M --- examples/opengl_example/imgui_impl_glfw.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/opengl_example/imgui_impl_glfw.cpp b/examples/opengl_example/imgui_impl_glfw.cpp index 8c9cb216..0243d513 100644 --- a/examples/opengl_example/imgui_impl_glfw.cpp +++ b/examples/opengl_example/imgui_impl_glfw.cpp @@ -87,6 +87,7 @@ static void ImGui_ImplGlfw_RenderDrawLists(ImDrawList** const cmd_lists, int cmd glDisableClientState(GL_COLOR_ARRAY); glDisableClientState(GL_TEXTURE_COORD_ARRAY); glDisableClientState(GL_VERTEX_ARRAY); + glBindTexture(GL_TEXTURE_2D, 0); glMatrixMode(GL_MODELVIEW); glPopMatrix(); glMatrixMode(GL_PROJECTION);