Added configure options to disable OpenGL ES 1.1 and 2.0 individually

This commit is contained in:
Sam Lantinga 2014-10-13 10:43:10 -07:00
parent 411e0f9dac
commit bebc8d126d
1 changed files with 38 additions and 28 deletions

View File

@ -1973,6 +1973,12 @@ dnl Check to see if OpenGL ES support is desired
AC_ARG_ENABLE(video-opengles,
AC_HELP_STRING([--enable-video-opengles], [include OpenGL ES support [[default=yes]]]),
, enable_video_opengles=yes)
AC_ARG_ENABLE(video-opengles1,
AC_HELP_STRING([--enable-video-opengles1], [include OpenGL ES 1.1 support [[default=yes]]]),
, enable_video_opengles1=yes)
AC_ARG_ENABLE(video-opengles2,
AC_HELP_STRING([--enable-video-opengles2], [include OpenGL ES 2.0 support [[default=yes]]]),
, enable_video_opengles2=yes)
dnl Find OpenGL ES
CheckOpenGLESX11()
@ -1993,6 +1999,7 @@ CheckOpenGLESX11()
AC_DEFINE(SDL_VIDEO_OPENGL_EGL, 1, [ ])
fi
if test x$enable_video_opengles1 = xyes; then
AC_MSG_CHECKING(for OpenGL ES v1 headers)
video_opengles_v1=no
AC_TRY_COMPILE([
@ -2008,7 +2015,9 @@ CheckOpenGLESX11()
AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES, 1, [ ])
SUMMARY_video="${SUMMARY_video} opengl_es1"
fi
fi
if test x$enable_video_opengles2 = xyes; then
AC_MSG_CHECKING(for OpenGL ES v2 headers)
video_opengles_v2=no
AC_TRY_COMPILE([
@ -2025,6 +2034,7 @@ CheckOpenGLESX11()
SUMMARY_video="${SUMMARY_video} opengl_es2"
fi
fi
fi
}
dnl Check for Windows OpenGL