Explorar o código

Fixes "error: conflicting types for 'GLintptr'"

Gabriel Jacobo %!s(int64=12) %!d(string=hai) anos
pai
achega
64e6eeac7f
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      src/video/SDL_video.c

+ 3 - 2
src/video/SDL_video.c

@@ -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"