gl/cocoa: include gl3.h in configure too for consistency with gstglapi.h
authorSebastian Dröge <sebastian@centricular.com>
Tue, 4 Nov 2014 08:52:11 +0000 (09:52 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 4 Nov 2014 08:52:11 +0000 (09:52 +0100)
configure.ac

index 150ccaa..fdb6c88 100644 (file)
@@ -863,6 +863,10 @@ if test "x$HAVE_GL" = "xyes" -a "x$HAVE_GLU" = "xyes" -a "x$HAVE_GLES2" = "xyes"
 # if __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>