summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2014-03-25 17:38:41 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2014-03-26 10:02:49 +0100
commit42c7f55c2f5636ecd565157ab0957c04c14fa1e5 (patch)
treec99424d7e45dabab368f853a485b965e4c587943
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
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 744e1e6900..5f42a6a73d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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.])
1100fi
1101if test "${want_sdl}" = "yes" && test "${with_opengl}" = "full"; then
1096 want_gl_sdl="yes" 1102 want_gl_sdl="yes"
1097fi 1103fi
1098 1104