aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl
diff options
context:
space:
mode:
authorMatthew Hoops2010-07-11 16:11:28 +0000
committerMatthew Hoops2010-07-11 16:11:28 +0000
commita1161feed2e2fcb10ef75d32bdad4df1054e159d (patch)
tree6c1eb3ada0e419ab2d69a5e3f010c12478aac9f7 /backends/graphics/opengl
parent4dca7c7e02a111a950124ee26a6d46090a0f755c (diff)
downloadscummvm-rg350-a1161feed2e2fcb10ef75d32bdad4df1054e159d.tar.gz
scummvm-rg350-a1161feed2e2fcb10ef75d32bdad4df1054e159d.tar.bz2
scummvm-rg350-a1161feed2e2fcb10ef75d32bdad4df1054e159d.zip
Fix compile on Mac OS X.
svn-id: r50801
Diffstat (limited to 'backends/graphics/opengl')
-rw-r--r--backends/graphics/opengl/gltexture.h5
-rw-r--r--backends/graphics/opengl/opengl-graphics.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/backends/graphics/opengl/gltexture.h b/backends/graphics/opengl/gltexture.h
index 7a33c88098..9238b73cf4 100644
--- a/backends/graphics/opengl/gltexture.h
+++ b/backends/graphics/opengl/gltexture.h
@@ -32,9 +32,12 @@
#undef ARRAYSIZE
#endif
-#ifdef USE_GLES
+#if defined(USE_GLES)
#include <GLES/gl.h>
#include <GLES/glext.h>
+#elif defined(MACOSX)
+#include <gl.h>
+#include <glext.h>
#else
#include <GL/gl.h>
#include <GL/glext.h>
diff --git a/backends/graphics/opengl/opengl-graphics.h b/backends/graphics/opengl/opengl-graphics.h
index ef71028854..cbf81db9b0 100644
--- a/backends/graphics/opengl/opengl-graphics.h
+++ b/backends/graphics/opengl/opengl-graphics.h
@@ -30,7 +30,7 @@
#include "backends/graphics/graphics.h"
enum {
- GFX_NORMAL = 0,
+ GFX_NORMAL = 0
};
/**