diff options
authorStefan Schmidt <>2014-03-25 17:38:41 +0100
committerStefan Schmidt <>2014-03-26 10:02:49 +0100
commit42c7f55c2f5636ecd565157ab0957c04c14fa1e5 (patch)
parent987a83ba9697b88e09c884ee060659595c5bc550 (diff)
build: Disallow non-working sdl + opengl ES combination
To build SDL with OpenGL ES we need a SDL version which ships these headers which only starts with SDL 2.x. So we only allow it for full OpenGL right now until someone wants to port our code over to SDL 2.x Fixes T856 @fix
1 files changed, 7 insertions, 1 deletions
diff --git a/ b/
index 744e1e6900..5f42a6a73d 100644
--- a/
+++ b/
@@ -1091,8 +1091,14 @@ if test "${want_sdl}" = "yes"; then
1091 EFL_PKG_CHECK_STRICT([sdl >= 1.2.0]) 1091 EFL_PKG_CHECK_STRICT([sdl >= 1.2.0])
1092fi 1092fi
1093 1093
1094# We only enable SDL with opengl if it is not the full version and not ES
1095# This can be changed if we ported our SDL code over to SDL 2.0. For older
1096# versions the SDL_opengles.h has never been released.
1094want_gl_sdl="no" 1097want_gl_sdl="no"
1095if test "${want_sdl}" = "yes" && test "${with_opengl}" != "none"; then 1098if test "${want_sdl}" = "yes" && test "${with_opengl}" = "es"; then
1099 AC_MSG_ERROR([We currently do not support SDL with OpenGL ES. Please consider full OpenGL if you want to use it with SDL.])
1101if test "${want_sdl}" = "yes" && test "${with_opengl}" = "full"; then
1096 want_gl_sdl="yes" 1102 want_gl_sdl="yes"
1097fi 1103fi
1098 1104