@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user