hints: Added SDL_HINT_LOG_BACKENDS.

Fixes #13354.
This commit is contained in:
Ryan C. Gordon committed 2025-07-14 19:49:38 -04:00
1 parent 277f91c317
commit 10004ab0ea
12 files changed
+57 -7

No files matched your search

+3 -1
View File
@@ -1006,7 +1006,9 @@ bool SDL_InitAudio(const char *driver_name)
}
}
if (!initialized) {
if (initialized) {
SDL_LogBackend("audio", current_audio.name);
} else {
// specific drivers will set the error message if they fail, but otherwise we do it here.
if (!tried_to_init) {
if (driver_name) {