aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl/glerrorcheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/graphics/opengl/glerrorcheck.cpp')
-rw-r--r--backends/graphics/opengl/glerrorcheck.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/graphics/opengl/glerrorcheck.cpp b/backends/graphics/opengl/glerrorcheck.cpp
index a4ad1e01ea..726147a66b 100644
--- a/backends/graphics/opengl/glerrorcheck.cpp
+++ b/backends/graphics/opengl/glerrorcheck.cpp
@@ -37,7 +37,9 @@
#undef ARRAYSIZE
#endif
-#ifdef USE_GLES
+#ifdef MACOSX
+#include <gl.h>
+#elif defined(USE_GLES)
#include <GLES/gl.h>
#else
#include <GL/gl.h>