From 39491a21784f4ac3b5701f040b75925b07003b72 Mon Sep 17 00:00:00 2001 From: Bruno Cabral Date: Tue, 9 Sep 2025 01:50:46 -0700 Subject: [PATCH] fix definition to use SDL3 --- cmake/LibraryConfigurations.cmake | 2 +- src/rcore.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/LibraryConfigurations.cmake b/cmake/LibraryConfigurations.cmake index e4655500e..15999582b 100644 --- a/cmake/LibraryConfigurations.cmake +++ b/cmake/LibraryConfigurations.cmake @@ -120,7 +120,7 @@ elseif ("${PLATFORM}" MATCHES "SDL") find_package(SDL3 QUIET) if(SDL3_FOUND) message(STATUS "Found SDL3 via find_package()") - set(PLATFORM_CPP "PLATFORM_DESKTOP_SDL") + set(PLATFORM_CPP "PLATFORM_DESKTOP_SDL3") set(LIBS_PRIVATE SDL3::SDL3) add_compile_definitions(USING_SDL3_PACKAGE) else() diff --git a/src/rcore.c b/src/rcore.c index 3455ff8c3..54569fea6 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -553,6 +553,8 @@ const char *TextFormat(const char *text, ...); // Formatting of text with variab #include "platforms/rcore_desktop_glfw.c" #elif defined(PLATFORM_DESKTOP_SDL) #include "platforms/rcore_desktop_sdl.c" +#elif defined(PLATFORM_DESKTOP_SDL3) + #include "platforms/rcore_desktop_sdl.c" #elif (defined(PLATFORM_DESKTOP_RGFW) || defined(PLATFORM_WEB_RGFW)) #include "platforms/rcore_desktop_rgfw.c" #elif defined(PLATFORM_DESKTOP_WIN32)