mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +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) {
|
if (!surf) {
|
||||||
ClosePhysicalCamera(device);
|
ClosePhysicalCamera(device);
|
||||||
ReleaseCamera(device);
|
ReleaseCamera(device);
|
||||||
return NULL;
|
return false;
|
||||||
}
|
}
|
||||||
SDL_SetSurfaceColorspace(surf, devspec->colorspace);
|
SDL_SetSurfaceColorspace(surf, devspec->colorspace);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user