SDL_camera.c: fix failure-return in SDL_PrepareCameraSurfaces().

This commit is contained in:
Ozkan Sezer
2025-03-01 04:37:02 +03:00
parent b8c2bc143e
commit 60c65f9fa4

View File

@@ -1031,7 +1031,7 @@ bool SDL_PrepareCameraSurfaces(SDL_Camera *device)
if (!surf) {
ClosePhysicalCamera(device);
ReleaseCamera(device);
return NULL;
return false;
}
SDL_SetSurfaceColorspace(surf, devspec->colorspace);