From 23ac1c2e91aa7d8ba6f5e3d6179c29e3a0413156 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 30 Aug 2021 16:12:51 +0100 Subject: [PATCH] Use apple gl3 headers as needed; Allow build with glew Signed-off-by: falkTX --- dgl/OpenGL.hpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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 // -----------------------------------------------------------------------