mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-22 17:11:43 +00:00
camera: Delete some failure code that should have been removed before.
This commit is contained in:
@@ -1031,9 +1031,7 @@ bool SDL_PrepareCameraSurfaces(SDL_Camera *device)
|
|||||||
surf = SDL_CreateSurfaceFrom(appspec->width, appspec->height, appspec->format, NULL, 0);
|
surf = SDL_CreateSurfaceFrom(appspec->width, appspec->height, appspec->format, NULL, 0);
|
||||||
}
|
}
|
||||||
if (!surf) {
|
if (!surf) {
|
||||||
ClosePhysicalCamera(device);
|
goto failed;
|
||||||
ReleaseCamera(device);
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
SDL_SetSurfaceColorspace(surf, devspec->colorspace);
|
SDL_SetSurfaceColorspace(surf, devspec->colorspace);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user