summaryrefslogtreecommitdiffstats
path: root/libvo/gl_common.h
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2012-10-07 19:22:18 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2012-10-07 19:22:18 +0200
commitdb984edf24c16121b04f798e06d0ea509c7b3d88 (patch)
tree79ae025c23089a18a32d0373c53cd24799263e97 /libvo/gl_common.h
parentabc0ab8f618afe9474d580c3d7f496e487c0e32d (diff)
downloadmpv-db984edf24c16121b04f798e06d0ea509c7b3d88.tar.bz2
mpv-db984edf24c16121b04f798e06d0ea509c7b3d88.tar.xz
gl_common: allow compilation on Mac OS 10.6
Define just enough constants to allow compilation on OS X Snow Leopard. mpv's OpenGL autodetection features should make the rest.
Diffstat (limited to 'libvo/gl_common.h')
-rw-r--r--libvo/gl_common.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvo/gl_common.h b/libvo/gl_common.h
index d2592b2f4f..7f9dc28083 100644
--- a/libvo/gl_common.h
+++ b/libvo/gl_common.h
@@ -34,8 +34,11 @@
#include "csputils.h"
#if defined(CONFIG_GL_COCOA) && !defined(CONFIG_GL_X11)
-#include <OpenGL/gl.h>
+#ifdef GL_VERSION_3_0
#include <OpenGL/gl3.h>
+#else
+#include <OpenGL/gl.h>
+#endif
#include <OpenGL/glext.h>
#else
#include <GL/gl.h>