mirror of
https://github.com/yawut/SDL.git
synced 2026-04-26 00:57:36 -05:00
Fix bug 3081: CMake configuration auto-disables OpenGL ES support on Windows.
Thanks to EntranceJew for the patch.
This commit is contained in:
parent
3ad426ffcb
commit
113b0ebb6f
|
|
@ -1027,6 +1027,13 @@ elseif(WINDOWS)
|
||||||
set(SDL_VIDEO_RENDER_OGL 1)
|
set(SDL_VIDEO_RENDER_OGL 1)
|
||||||
set(HAVE_VIDEO_OPENGL TRUE)
|
set(HAVE_VIDEO_OPENGL TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(VIDEO_OPENGLES)
|
||||||
|
set(SDL_VIDEO_OPENGL_EGL 1)
|
||||||
|
set(SDL_VIDEO_OPENGL_ES2 1)
|
||||||
|
set(SDL_VIDEO_RENDER_OGL_ES2 1)
|
||||||
|
set(HAVE_VIDEO_OPENGLES TRUE)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(SDL_JOYSTICK)
|
if(SDL_JOYSTICK)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user