diff --git a/dgl/OpenGL.hpp b/dgl/OpenGL.hpp index 9328e5c1..67a0ddd2 100644 --- a/dgl/OpenGL.hpp +++ b/dgl/OpenGL.hpp @@ -67,13 +67,20 @@ // OpenGL includes #ifdef DISTRHO_OS_MAC -# include +# ifdef DGL_USE_OPENGL3 +# include +# include +# else +# include +# endif #else # ifndef DISTRHO_OS_WINDOWS # define GL_GLEXT_PROTOTYPES # endif -# include -# include +# ifndef __GLEW_H__ +# include +# include +# endif #endif // -----------------------------------------------------------------------