From 7f78d0f0d3870dc1784f257661aa99843fab9e06 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 21 Jun 2019 22:01:27 -0700 Subject: [PATCH] Fixed bug 4684 - GLES1 variables missing under Android with CMake Braden Obrzut https://hg.libsdl.org/SDL/file/7dc39b047055/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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f5f1da4a4..fe6dd2a56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -909,6 +909,8 @@ if(ANDROID) if(VIDEO_OPENGLES) set(SDL_VIDEO_OPENGL_EGL 1) set(HAVE_VIDEO_OPENGLES TRUE) + set(SDL_VIDEO_OPENGL_ES 1) + set(SDL_VIDEO_RENDER_OGL_ES 1) set(SDL_VIDEO_OPENGL_ES2 1) set(SDL_VIDEO_RENDER_OGL_ES2 1)