summaryrefslogtreecommitdiff
path: root/src/resources/subimage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/subimage.h')
-rw-r--r--src/resources/subimage.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/resources/subimage.h b/src/resources/subimage.h
index 47d8476cb..69e0debab 100644
--- a/src/resources/subimage.h
+++ b/src/resources/subimage.h
@@ -30,16 +30,15 @@
#ifdef USE_OPENGL
-/* The definition of OpenGL extensions by SDL is giving problems with recent
- * gl.h headers, since they also include these definitions. As we're not using
- * extensions anyway it's safe to just disable the SDL version.
- */
-//#define NO_SDL_GLEXT
+#ifdef ANDROID
+#include <GLES/gl.h>
+#else
#define GL_GLEXT_PROTOTYPES 1
-
#include <SDL_opengl.h>
#endif
+#endif
+
#include "resources/image.h"
/**