aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoost Peters2010-08-03 12:54:07 +0000
committerJoost Peters2010-08-03 12:54:07 +0000
commit8fa456852f45a95134756f64740de6721c231673 (patch)
treed9c06b8cbb5b2aeb8db96a124a65f861377f9473
parent6786c2a714b23d5c70e900cdcf86bdee83993283 (diff)
downloadscummvm-rg350-8fa456852f45a95134756f64740de6721c231673.tar.gz
scummvm-rg350-8fa456852f45a95134756f64740de6721c231673.tar.bz2
scummvm-rg350-8fa456852f45a95134756f64740de6721c231673.zip
OSX: Fix OpenGL detection
svn-id: r51690
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index 0b555fc57c..077780231b 100755
--- a/configure
+++ b/configure
@@ -2315,8 +2315,8 @@ echocheck "OpenGL (ES)"
if test "$_opengl" = auto ; then
_opengl=no
cat > $TMPC << EOF
-#if defined(__MACOSX__)
-#include <gl.h>
+#if defined(MACOSX)
+#include <OpenGL/gl.h>
#else
#if defined(__WIN32__)
#define WIN32_LEAN_AND_MEAN
@@ -2326,7 +2326,7 @@ if test "$_opengl" = auto ; then
#endif
int main(void) { return GL_VERSION_1_1; }
EOF
- cc_check $OPENGL_CFLAGS $OPENGL_LIBS && _opengl=yes
+ cc_check $DEFINES $OPENGL_CFLAGS $OPENGL_LIBS && _opengl=yes
fi
if test "$_opengl" = yes ; then
_def_opengl='#define USE_OPENGL'