Fix bug 3081: CMake configuration auto-disables OpenGL ES support on Windows.
authorAlex Szpakowski <slime73@gmail.com>
Fri, 28 Aug 2015 19:10:46 -0300
changeset 9854 dbcbdc2940ef
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
--- a/CMakeLists.txt	Fri Aug 28 19:05:24 2015 -0300
+++ b/CMakeLists.txt	Fri Aug 28 19:10:46 2015 -0300
@@ -1027,6 +1027,13 @@
       set(SDL_VIDEO_RENDER_OGL 1)
       set(HAVE_VIDEO_OPENGL TRUE)
     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()
 
   if(SDL_JOYSTICK)