summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Isorce <julien.isorce@gmail.com>2014-11-03 23:08:09 +0000
committerSebastian Dröge <sebastian@centricular.com>2014-11-04 09:53:50 +0100
commit85f67667b2e5d6de6b1b3d59cd08c44c12a30955 (patch)
treeb13f37d2cafb8a319fad7863f6b0a933f293315b
parent2fbe03163c54424147fc74d525905665e4a36525 (diff)
downloadgstreamer-plugins-bad-85f67667b2e5d6de6b1b3d59cd08c44c12a30955.tar.gz
gl/cocoa: include gl3.h to have GL_CONTEXT_PROFILE_MASK
-rw-r--r--gst-libs/gst/gl/gstglapi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstglapi.h b/gst-libs/gst/gl/gstglapi.h
index b13666245..798eeba6e 100644
--- a/gst-libs/gst/gl/gstglapi.h
+++ b/gst-libs/gst/gl/gstglapi.h
@@ -71,6 +71,10 @@
# ifdef __APPLE__
# include <OpenGL/OpenGL.h>
# include <OpenGL/gl.h>
+# if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
+# define GL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED
+# include <OpenGL/gl3.h>
+# endif
# include <OpenGL/glu.h>
# else
# include <GL/gl.h>