From f2e62071d1029d83a639e57682b4a775bb9c3015 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 7 Oct 2023 03:13:25 -0500 Subject: [PATCH] do not enable SDL_OPENGLES if on recent Mesa apparently my build failed --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6fd435f28..2aeae78c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -325,6 +325,11 @@ if (USE_SDL2) set(SDL_RENDER_D3D OFF CACHE BOOL "Enable the Direct3D render driver" FORCE) endif() + CHECK_INCLUDE_FILE(GLES/gl.h GLES_GL_FOUND) + if (NOT GLES_GL_FOUND AND NOT USE_GLES) + set(SDL_OPENGLES OFF CACHE BOOL "Enable OpenGL ES" FORCE) + endif() + add_subdirectory(extern/SDL EXCLUDE_FROM_ALL) list(APPEND DEPENDENCIES_DEFINES HAVE_SDL2) list(APPEND DEPENDENCIES_INCLUDE_DIRS extern/SDL/include)