Added Mac OpenGL ES configure support
authorSam Lantinga <slouken@libsdl.org>
Mon, 12 Mar 2018 18:41:06 -0700
changeset 11930c808a74c019e
parent 11929 b0ed2c515be0
child 11931 d479188e0155
Added Mac OpenGL ES configure support
configure
configure.in
     1.1 --- a/configure	Sat Mar 10 21:22:42 2018 -0800
     1.2 +++ b/configure	Mon Mar 12 18:41:06 2018 -0700
     1.3 @@ -22018,6 +22018,24 @@
     1.4      fi
     1.5  }
     1.6  
     1.7 +CheckMacGLES()
     1.8 +{
     1.9 +    if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
    1.10 +        video_opengl_egl=yes
    1.11 +
    1.12 +$as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
    1.13 +
    1.14 +        video_opengles_v2=yes
    1.15 +
    1.16 +$as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
    1.17 +
    1.18 +
    1.19 +$as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
    1.20 +
    1.21 +        SUMMARY_video="${SUMMARY_video} opengl_es2"
    1.22 +    fi
    1.23 +}
    1.24 +
    1.25  CheckEmscriptenGLES()
    1.26  {
    1.27      if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
    1.28 @@ -24461,6 +24479,7 @@
    1.29          CheckMETAL
    1.30          CheckX11
    1.31          CheckMacGL
    1.32 +        CheckMacGLES
    1.33          CheckOpenGLX11
    1.34          CheckVulkan
    1.35          CheckPTHREAD
     2.1 --- a/configure.in	Sat Mar 10 21:22:42 2018 -0800
     2.2 +++ b/configure.in	Mon Mar 12 18:41:06 2018 -0700
     2.3 @@ -2462,6 +2462,19 @@
     2.4      fi
     2.5  }
     2.6  
     2.7 +dnl Check for MacOS OpenGLES
     2.8 +CheckMacGLES()
     2.9 +{
    2.10 +    if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
    2.11 +        video_opengl_egl=yes
    2.12 +        AC_DEFINE(SDL_VIDEO_OPENGL_EGL, 1, [ ])
    2.13 +        video_opengles_v2=yes
    2.14 +        AC_DEFINE(SDL_VIDEO_OPENGL_ES2, 1, [ ])
    2.15 +        AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES2, 1, [ ])
    2.16 +        SUMMARY_video="${SUMMARY_video} opengl_es2"
    2.17 +    fi
    2.18 +}
    2.19 +
    2.20  CheckEmscriptenGLES()
    2.21  {
    2.22      if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
    2.23 @@ -3773,6 +3786,7 @@
    2.24          CheckMETAL
    2.25          CheckX11
    2.26          CheckMacGL
    2.27 +        CheckMacGLES
    2.28          CheckOpenGLX11
    2.29          CheckVulkan
    2.30          CheckPTHREAD