diff --git a/examples/opengl_example/main.cpp b/examples/opengl_example/main.cpp index d2c76fa8d..7fe45c1ad 100644 --- a/examples/opengl_example/main.cpp +++ b/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()