浏览代码

Merge pull request #29 from Roflraging/master

Disable client state in OpenGL example after rendering.
omar 11 年之前
父节点
当前提交
710b9b68b1
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      examples/opengl_example/main.cpp

+ 3 - 0
examples/opengl_example/main.cpp

@@ -61,6 +61,9 @@ static void ImImpl_RenderDrawLists(ImDrawList** const cmd_lists, int cmd_lists_c
         }
     }
     glDisable(GL_SCISSOR_TEST);
+    glDisableClientState(GL_COLOR_ARRAY);
+    glDisableClientState(GL_TEXTURE_COORD_ARRAY);
+    glDisableClientState(GL_VERTEX_ARRAY);
 }
 
 static const char* ImImpl_GetClipboardTextFn()