Added Mac OpenGL ES configure support

This commit is contained in:
Sam Lantinga 2018-03-12 18:41:06 -07:00
parent d401a77eff
commit 1cfbe664f5
2 changed files with 33 additions and 0 deletions

19
configure vendored
View File

@ -22018,6 +22018,24 @@ $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
fi fi
} }
CheckMacGLES()
{
if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
video_opengl_egl=yes
$as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
video_opengles_v2=yes
$as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
$as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
SUMMARY_video="${SUMMARY_video} opengl_es2"
fi
}
CheckEmscriptenGLES() CheckEmscriptenGLES()
{ {
if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
@ -24461,6 +24479,7 @@ $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
CheckMETAL CheckMETAL
CheckX11 CheckX11
CheckMacGL CheckMacGL
CheckMacGLES
CheckOpenGLX11 CheckOpenGLX11
CheckVulkan CheckVulkan
CheckPTHREAD CheckPTHREAD

View File

@ -2462,6 +2462,19 @@ CheckMacGL()
fi fi
} }
dnl Check for MacOS OpenGLES
CheckMacGLES()
{
if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
video_opengl_egl=yes
AC_DEFINE(SDL_VIDEO_OPENGL_EGL, 1, [ ])
video_opengles_v2=yes
AC_DEFINE(SDL_VIDEO_OPENGL_ES2, 1, [ ])
AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES2, 1, [ ])
SUMMARY_video="${SUMMARY_video} opengl_es2"
fi
}
CheckEmscriptenGLES() CheckEmscriptenGLES()
{ {
if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
@ -3773,6 +3786,7 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau
CheckMETAL CheckMETAL
CheckX11 CheckX11
CheckMacGL CheckMacGL
CheckMacGLES
CheckOpenGLX11 CheckOpenGLX11
CheckVulkan CheckVulkan
CheckPTHREAD CheckPTHREAD