src/video/SDL_video.c
changeset 7698 a60b3c292f0f
parent 7662 d31efd717578
child 7719 31b5f9ff36ca
--- a/src/video/SDL_video.c	Sat Aug 24 21:15:10 2013 -0400
+++ b/src/video/SDL_video.c	Sun Aug 25 11:48:49 2013 -0300
@@ -39,9 +39,10 @@
 #include "SDL_opengles.h"
 #endif /* SDL_VIDEO_OPENGL_ES */
 
-#if SDL_VIDEO_OPENGL_ES2
+/* GL and GLES2 headers conflict on Linux 32 bits */
+#if SDL_VIDEO_OPENGL_ES2 && !SDL_VIDEO_OPENGL
 #include "SDL_opengles2.h"
-#endif /* SDL_VIDEO_OPENGL_ES2 */
+#endif /* SDL_VIDEO_OPENGL_ES2 && !SDL_VIDEO_OPENGL */
 
 #include "SDL_syswm.h"