summaryrefslogtreecommitdiff
path: root/user/sdl2/gles.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-20 17:49:38 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-20 17:49:38 +0000
commitc360fb7ccd7fcf5e08088a5f179b47112d0d374e (patch)
tree49dc8eb0e926ee9ff36de85697be97425a572fdd /user/sdl2/gles.patch
parentcbccfe59728846f22ad196a4ba5c58e0a705a6b6 (diff)
downloadpackages-c360fb7ccd7fcf5e08088a5f179b47112d0d374e.tar.gz
packages-c360fb7ccd7fcf5e08088a5f179b47112d0d374e.tar.bz2
packages-c360fb7ccd7fcf5e08088a5f179b47112d0d374e.tar.xz
packages-c360fb7ccd7fcf5e08088a5f179b47112d0d374e.zip
user/sdl2: Fix 32-bit build with GLES
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 */
+