Added type checking for __custom functions
[supertux.git] / src / video / glutil.hpp
index 85200bd..c1b45be 100644 (file)
 #include <sstream>
 #include <stdexcept>
 
-#ifndef MACOSX
-#include <GL/gl.h>
-#include <GL/glext.h>
-#else
+#ifdef MACOSX
 #include <OpenGL/gl.h>
 #include <OpenGL/glext.h>
+#else
+#ifdef GL_VERSION_ES_CM_1_0
+#include <GLES/gl.h>
+#include <GLES/glext.h>
+#else
+#include <GL/gl.h>
+#include <GL/glext.h>
+#endif
 #endif
 
 static inline void check_gl_error(const char* message)