CMake: Don't disable EGL for Android

Fixes OpenGL renderer being unavailable.
This commit is contained in:
Connor McLaughlin 2021-01-11 00:59:00 +10:00
parent 19032750b4
commit 5d7d848fe6

View File

@ -43,19 +43,19 @@ endif()
if(ANDROID) if(ANDROID)
if(BUILD_SDL_FRONTEND) if(BUILD_SDL_FRONTEND)
message(WARNING "Building for Android or libretro core, disabling SDL frontend") message(WARNING "Building for Android, disabling SDL frontend")
set(BUILD_SDL_FRONTEND OFF) set(BUILD_SDL_FRONTEND OFF)
endif() endif()
if(BUILD_QT_FRONTEND) if(BUILD_QT_FRONTEND)
message(WARNING "Building for Android or libretro core, disabling Qt frontend") message(WARNING "Building for Android, disabling Qt frontend")
set(BUILD_QT_FRONTEND OFF) set(BUILD_QT_FRONTEND OFF)
endif() endif()
if(ENABLE_DISCORD_PRESENCE) if(ENABLE_DISCORD_PRESENCE)
message("Building for Android or libretro core, disabling Discord Presence support") message("Building for Android, disabling Discord Presence support")
set(ENABLE_DISCORD_PRESENCE OFF) set(ENABLE_DISCORD_PRESENCE OFF)
endif() endif()
if(USE_SDL2) if(USE_SDL2)
message("Building for Android or libretro core, disabling SDL2 support") message("Building for Android, disabling SDL2 support")
set(USE_SDL2 OFF) set(USE_SDL2 OFF)
endif() endif()
if(USE_X11) if(USE_X11)
@ -64,9 +64,6 @@ if(ANDROID)
if(USE_WAYLAND) if(USE_WAYLAND)
set(USE_WAYLAND OFF) set(USE_WAYLAND OFF)
endif() endif()
if(USE_EGL)
set(USE_EGL OFF)
endif()
endif() endif()