mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-05 21:07:53 +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