hints: Added SDL_HINT_LOG_BACKENDS.

Fixes #13354.
This commit is contained in:
Ryan C. Gordon
2025-07-14 00:14:15 -04:00
parent 277f91c317
commit 10004ab0ea
12 changed files with 57 additions and 7 deletions

View File

@@ -1524,7 +1524,9 @@ bool SDL_CameraInit(const char *driver_name)
}
}
if (!initialized) {
if (initialized) {
SDL_LogBackend("camera", camera_driver.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) {