mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-03 17:05:41 +00:00
cmake: allow disabling OpenGL support when building with GLES using PSP2-PVR
This commit is contained in:
parent
038ccd764a
commit
a8a5bd3d6b
|
@ -2497,7 +2497,6 @@ elseif(VITA)
|
|||
check_include_file(gpu_es4/psp2_pvr_hint.h HAVE_PVR_H)
|
||||
if(HAVE_PVR_H)
|
||||
target_compile_definitions(sdl-build-options INTERFACE "-D__psp2__")
|
||||
check_include_file(gl4esinit.h HAVE_GL4ES_H)
|
||||
set(SDL_VIDEO_OPENGL_EGL 1)
|
||||
set(HAVE_OPENGLES TRUE)
|
||||
set(SDL_VIDEO_OPENGL_ES 1)
|
||||
|
@ -2514,6 +2513,8 @@ elseif(VITA)
|
|||
set(HAVE_VIDEO_VITA_PVR ON)
|
||||
set(SDL_VIDEO_VITA_PVR 1)
|
||||
|
||||
if(SDL_OPENGL)
|
||||
check_include_file(gl4esinit.h HAVE_GL4ES_H)
|
||||
if(HAVE_GL4ES_H)
|
||||
set(HAVE_OPENGL TRUE)
|
||||
set(SDL_VIDEO_OPENGL 1)
|
||||
|
@ -2521,6 +2522,7 @@ elseif(VITA)
|
|||
list(APPEND EXTRA_LIBS libGL_stub)
|
||||
set(SDL_VIDEO_VITA_PVR_OGL 1)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
else()
|
||||
set(HAVE_VIDEO_VITA_PVR OFF)
|
||||
|
|
Loading…
Reference in a new issue