From 897c7cfa8b949fcdab6b066c0420737b02ebe321 Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Tue, 7 Dec 2021 10:24:46 +0100 Subject: [PATCH] Make sure SDL_VIDEO_RENDER_PSP is set --- CMakeLists.txt | 4 ++-- include/SDL_config.h.cmake | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a1cf5d376..3fec45dbc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2391,11 +2391,11 @@ elseif(PSP) endif() if(SDL_VIDEO) set(SDL_VIDEO_DRIVER_PSP 1) + set(SDL_VIDEO_RENDER_PSP 1) file(GLOB PSP_VIDEO_SOURCES ${SDL2_SOURCE_DIR}/src/video/psp/*.c) set(SOURCE_FILES ${SOURCE_FILES} ${PSP_VIDEO_SOURCES}) - set(HAVE_SDL_VIDEO TRUE) set(SDL_VIDEO_OPENGL 1) - set(HAVE_VIDEO_OPENGL TRUE) + set(HAVE_SDL_VIDEO TRUE) endif() list(APPEND EXTRA_LIBS diff --git a/include/SDL_config.h.cmake b/include/SDL_config.h.cmake index cf83c3bf3..a7ad7e209 100644 --- a/include/SDL_config.h.cmake +++ b/include/SDL_config.h.cmake @@ -444,6 +444,7 @@ #cmakedefine SDL_VIDEO_RENDER_DIRECTFB @SDL_VIDEO_RENDER_DIRECTFB@ #cmakedefine SDL_VIDEO_RENDER_METAL @SDL_VIDEO_RENDER_METAL@ #cmakedefine SDL_VIDEO_RENDER_VITA_GXM @SDL_VIDEO_RENDER_VITA_GXM@ +#cmakedefine SDL_VIDEO_RENDER_PSP @SDL_VIDEO_RENDER_PSP@ /* Enable OpenGL support */ #cmakedefine SDL_VIDEO_OPENGL @SDL_VIDEO_OPENGL@