mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
SDL_camera.c: fix failure-return in SDL_PrepareCameraSurfaces().
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user