diff --git a/src/OpenGl/OpenGl_GlCore11.hxx b/src/OpenGl/OpenGl_GlCore11.hxx index b3dfeb233e..cca428a0f1 100644 --- a/src/OpenGl/OpenGl_GlCore11.hxx +++ b/src/OpenGl/OpenGl_GlCore11.hxx @@ -41,9 +41,11 @@ // current TKOpenGl implementation is incompatible with native OpenGL on MacOS X #define MACOSX_USE_GLX +// exclude modern definitions and system-provided glext.h, should be defined before gl.h inclusion +#define GL_GLEXT_LEGACY + // include main OpenGL header provided with system #if defined(__APPLE__) && !defined(MACOSX_USE_GLX) - #define GL_GLEXT_LEGACY // exclude modern definitions #include #else #include