vita: allow GLES support without GL support
parent
3cb819ac48
commit
3e3debf9de
|
@ -2450,7 +2450,6 @@ elseif(VITA)
|
||||||
check_include_file(gpu_es4/psp2_pvr_hint.h HAVE_PVR_H)
|
check_include_file(gpu_es4/psp2_pvr_hint.h HAVE_PVR_H)
|
||||||
if(HAVE_PVR_H)
|
if(HAVE_PVR_H)
|
||||||
target_compile_definitions(sdl-build-options INTERFACE "__psp2__")
|
target_compile_definitions(sdl-build-options INTERFACE "__psp2__")
|
||||||
check_include_file(gl4esinit.h HAVE_GL4ES_H)
|
|
||||||
set(SDL_VIDEO_OPENGL_EGL 1)
|
set(SDL_VIDEO_OPENGL_EGL 1)
|
||||||
set(HAVE_OPENGLES TRUE)
|
set(HAVE_OPENGLES TRUE)
|
||||||
set(SDL_VIDEO_OPENGL_ES 1)
|
set(SDL_VIDEO_OPENGL_ES 1)
|
||||||
|
@ -2466,12 +2465,15 @@ elseif(VITA)
|
||||||
set(HAVE_VIDEO_VITA_PVR ON)
|
set(HAVE_VIDEO_VITA_PVR ON)
|
||||||
set(SDL_VIDEO_VITA_PVR 1)
|
set(SDL_VIDEO_VITA_PVR 1)
|
||||||
|
|
||||||
if(HAVE_GL4ES_H)
|
if(SDL_OPENGL)
|
||||||
set(HAVE_OPENGL TRUE)
|
check_include_file(gl4esinit.h HAVE_GL4ES_H)
|
||||||
set(SDL_VIDEO_OPENGL 1)
|
if(HAVE_GL4ES_H)
|
||||||
set(SDL_VIDEO_RENDER_OGL 1)
|
set(HAVE_OPENGL TRUE)
|
||||||
list(APPEND SDL_EXTRA_LIBS libGL_stub)
|
set(SDL_VIDEO_OPENGL 1)
|
||||||
set(SDL_VIDEO_VITA_PVR_OGL 1)
|
set(SDL_VIDEO_RENDER_OGL 1)
|
||||||
|
list(APPEND SDL_EXTRA_LIBS libGL_stub)
|
||||||
|
set(SDL_VIDEO_VITA_PVR_OGL 1)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Reference in New Issue