summaryrefslogtreecommitdiff
path: root/user/sdl2/gles.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/sdl2/gles.patch')
-rw-r--r--user/sdl2/gles.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/user/sdl2/gles.patch b/user/sdl2/gles.patch
new file mode 100644
index 000000000..c400577e1
--- /dev/null
+++ b/user/sdl2/gles.patch
@@ -0,0 +1,12 @@
+--- SDL2-2.0.10/src/video/SDL_video.c.old 2019-07-25 04:32:37.000000000 +0000
++++ SDL2-2.0.10/src/video/SDL_video.c 2020-01-20 17:32:52.918453596 +0000
+@@ -37,7 +37,8 @@
+ #include "SDL_opengl.h"
+ #endif /* SDL_VIDEO_OPENGL */
+
+-#if SDL_VIDEO_OPENGL_ES
++/* GL and GLES headers conflict on Linux 32 bits */
++#if SDL_VIDEO_OPENGL_ES && !SDL_VIDEO_OPENGL
+ #include "SDL_opengles.h"
+ #endif /* SDL_VIDEO_OPENGL_ES */
+