From 80581eea7892bca7859979008b83a404b9624f38 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Thu, 27 Feb 2025 14:58:58 -0500
Subject: [PATCH] LoadSDL3: clarify not to call into SDL3 _at all_ during this
function.
---
src/sdl2_compat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index 473597c..ddf369e 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -802,7 +802,7 @@ SDL2Compat_ApplyQuirks(bool force_x11)
}
-/* DO NOT CALL THINGS THAT USE SDL ALLOCATORS HERE. It runs before main(), so app-supplied allocators are not set at this point.
+/* DO NOT USE SDL3 FUNCTIONS IN HERE! It runs before main(), so app-supplied allocators are not set at this point.
This means no SDL_Log, no hint subsystem, nothing that might call SDL_SetError! In fact, favor code in this file, using
platform-specific #ifdefs, to calling into SDL3 at all, if you can help it. */
static int