From 825d96d8317c7691343583abedceef28376082cb Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Tue, 22 Jul 2025 13:23:39 -0400
Subject: [PATCH] init: If using sdl2-compat's debug logging, also turn on
SDL3's.
---
src/sdl2_compat.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index f996a55..b8a0a58 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) {