Merge pull request #29 from Roflraging/master
Disable client state in OpenGL example after rendering.
diff --git a/examples/opengl_example/main.cpp b/examples/opengl_example/main.cpp
index d2c76fa..7fe45c1 100644
--- a/examples/opengl_example/main.cpp
+++ b/examples/opengl_example/main.cpp
@@ -61,6 +61,9 @@
}
}
glDisable(GL_SCISSOR_TEST);
+ glDisableClientState(GL_COLOR_ARRAY);
+ glDisableClientState(GL_TEXTURE_COORD_ARRAY);
+ glDisableClientState(GL_VERTEX_ARRAY);
}
static const char* ImImpl_GetClipboardTextFn()