소스 검색

Examples: OpenGL fixed-pipeline: added glBindTexture(0), via Anton M

ocornut 10 년 전
부모
커밋
73e2d56acc
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      examples/opengl_example/imgui_impl_glfw.cpp

+ 1 - 0
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);