Fix bug 3081: CMake configuration auto-disables OpenGL ES support on Windows.
authorAlex Szpakowski
Fri, 28 Aug 2015 19:10:46 -0300
changeset 9854dbcbdc2940ef
parent 9853 3d08cb641cd5
child 9855 223f26fca6ce
Fix bug 3081: CMake configuration auto-disables OpenGL ES support on Windows.

Thanks to EntranceJew for the patch.
CMakeLists.txt
     1.1 --- a/CMakeLists.txt	Fri Aug 28 19:05:24 2015 -0300
     1.2 +++ b/CMakeLists.txt	Fri Aug 28 19:10:46 2015 -0300
     1.3 @@ -1027,6 +1027,13 @@
     1.4        set(SDL_VIDEO_RENDER_OGL 1)
     1.5        set(HAVE_VIDEO_OPENGL TRUE)
     1.6      endif()
     1.7 +
     1.8 +    if(VIDEO_OPENGLES)
     1.9 +      set(SDL_VIDEO_OPENGL_EGL 1)
    1.10 +      set(SDL_VIDEO_OPENGL_ES2 1)
    1.11 +      set(SDL_VIDEO_RENDER_OGL_ES2 1)
    1.12 +      set(HAVE_VIDEO_OPENGLES TRUE)
    1.13 +    endif()
    1.14    endif()
    1.15  
    1.16    if(SDL_JOYSTICK)