1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From: "Ryan C. Gordon" <icculus@icculus.org>
Date: Tue, 22 Jul 2025 13:23:39 -0400
Subject: init: If using sdl2-compat's debug logging, also turn on SDL3's.
Origin: upstream, 2.32.57, commit:825d96d8317c7691343583abedceef28376082cb
---
src/sdl2_compat.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index 4ce380a..b368a82 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -998,6 +998,10 @@ LoadSDL3(void)
#endif
WantDebugLogging = SDL2Compat_CheckDebugLogging();
+ if (WantDebugLogging) {
+ // force on the SDL3 debug logging, too, so we get info on backend choices, etc.
+ SDL2Compat_SetEnvAtStartup("SDL_DEBUG_LOGGING", "1");
+ }
okay = LoadSDL3Library();
if (!okay) {
|