summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/image.h')
-rw-r--r--src/resources/image.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/resources/image.h b/src/resources/image.h
index 3752965bc..36404b2b1 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -37,10 +37,14 @@
* extensions anyway it's safe to just disable the SDL version.
*/
//#define NO_SDL_GLEXT
-#define GL_GLEXT_PROTOTYPES 1
+#ifdef ANDROID
+#include <GLES/gl.h>
+#else
+#define GL_GLEXT_PROTOTYPES 1
#include <SDL_opengl.h>
#endif
+#endif
#include <map>