Skip to content

Commit

Permalink
do not enable SDL_OPENGLES if on recent Mesa
Browse files Browse the repository at this point in the history
apparently my build failed
  • Loading branch information
tildearrow committed Oct 7, 2023
1 parent e879759 commit f2e6207
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f2e6207

Please sign in to comment.