mirror of https://github.com/libsdl-org/SDL.git
SDL_camera.c: fix failure-return in SDL_PrepareCameraSurfaces().
This commit is contained in:
parent
b8c2bc143e
commit
60c65f9fa4
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue