configure.in
changeset 11930 c808a74c019e
parent 11894 cd67e676bca7
child 11951 28be2719184c
     1.1 --- a/configure.in	Sat Mar 10 21:22:42 2018 -0800
     1.2 +++ b/configure.in	Mon Mar 12 18:41:06 2018 -0700
     1.3 @@ -2462,6 +2462,19 @@
     1.4      fi
     1.5  }
     1.6  
     1.7 +dnl Check for MacOS OpenGLES
     1.8 +CheckMacGLES()
     1.9 +{
    1.10 +    if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
    1.11 +        video_opengl_egl=yes
    1.12 +        AC_DEFINE(SDL_VIDEO_OPENGL_EGL, 1, [ ])
    1.13 +        video_opengles_v2=yes
    1.14 +        AC_DEFINE(SDL_VIDEO_OPENGL_ES2, 1, [ ])
    1.15 +        AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES2, 1, [ ])
    1.16 +        SUMMARY_video="${SUMMARY_video} opengl_es2"
    1.17 +    fi
    1.18 +}
    1.19 +
    1.20  CheckEmscriptenGLES()
    1.21  {
    1.22      if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
    1.23 @@ -3773,6 +3786,7 @@
    1.24          CheckMETAL
    1.25          CheckX11
    1.26          CheckMacGL
    1.27 +        CheckMacGLES
    1.28          CheckOpenGLX11
    1.29          CheckVulkan
    1.30          CheckPTHREAD