aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/graphics/opengl/gltexture.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/backends/graphics/opengl/gltexture.h b/backends/graphics/opengl/gltexture.h
index bc806f6064..92bd0ec8d9 100644
--- a/backends/graphics/opengl/gltexture.h
+++ b/backends/graphics/opengl/gltexture.h
@@ -32,12 +32,10 @@
#undef ARRAYSIZE
#endif
-#if defined(USE_GLES)
-#include <GLES/gl.h>
-#endif
-
#if defined(SDL_BACKEND)
#include <SDL_opengl.h>
+#elif defined(USE_GLES)
+#include <GLES/gl.h>
#else
#include <GL/gl.h>
#endif