diff Framework/OpenGL/OpenGLTexture.h @ 581:d933fc19214a

fix windows build
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 19 Apr 2019 16:17:13 +0200
parents fadacfbf5538
children e36e69a380a5
line wrap: on
line diff
--- a/Framework/OpenGL/OpenGLTexture.h	Fri Apr 19 16:10:27 2019 +0200
+++ b/Framework/OpenGL/OpenGLTexture.h	Fri Apr 19 16:17:13 2019 +0200
@@ -29,9 +29,16 @@
 #  error Support for OpenGL is disabled
 #endif
 
+#if defined(__APPLE__)
+#  include <OpenGL/gl.h>
+#  include <OpenGL/glext.h>
+#else
+#  include <GL/gl.h>
+#  include <GL/glext.h>
+#endif
+
 #include <Core/Images/ImageAccessor.h>
 
-#include <GL/gl.h>
 #include <boost/noncopyable.hpp>