Fixed bug 4684 - GLES1 variables missing under Android with CMake
authorSam Lantinga <slouken@libsdl.org>
Fri, 21 Jun 2019 22:01:27 -0700
changeset 129015cbf6472a916
parent 12900 9d3f245739f8
child 12902 50d0c0ade376
Fixed bug 4684 - GLES1 variables missing under Android with CMake

Braden Obrzut

https://hg.libsdl.org/SDL/file/9d3f245739f8/CMakeLists.txt#l911

I believe the following should also be specified there:

set(SDL_VIDEO_OPENGL_ES 1)
set(SDL_VIDEO_RENDER_OGL_ES 1)

As it is now GLES1 support is missing when building for Android despite it linking to the library.
CMakeLists.txt
     1.1 --- a/CMakeLists.txt	Fri Jun 21 15:07:39 2019 -0400
     1.2 +++ b/CMakeLists.txt	Fri Jun 21 22:01:27 2019 -0700
     1.3 @@ -909,6 +909,8 @@
     1.4      if(VIDEO_OPENGLES)
     1.5        set(SDL_VIDEO_OPENGL_EGL 1)
     1.6        set(HAVE_VIDEO_OPENGLES TRUE)
     1.7 +      set(SDL_VIDEO_OPENGL_ES 1)
     1.8 +      set(SDL_VIDEO_RENDER_OGL_ES 1)
     1.9        set(SDL_VIDEO_OPENGL_ES2 1)
    1.10        set(SDL_VIDEO_RENDER_OGL_ES2 1)
    1.11