Make sure SDL_VIDEO_RENDER_PSP is set
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a1cf5d3..3fec45d 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 cf83c3b..a7ad7e2 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@