mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-22 12:35:11 +00:00
do not enable SDL_OPENGLES if on recent Mesa
apparently my build failed
This commit is contained in:
parent
e879759f2d
commit
f2e62071d1
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue