mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-20 21:16:04 +00:00
camera: Delete some failure code that should have been removed before.
This commit is contained in:
parent
f868408a3a
commit
a88105784f
1 changed files with 1 additions and 3 deletions
|
|
@ -1031,9 +1031,7 @@ bool SDL_PrepareCameraSurfaces(SDL_Camera *device)
|
|||
surf = SDL_CreateSurfaceFrom(appspec->width, appspec->height, appspec->format, NULL, 0);
|
||||
}
|
||||
if (!surf) {
|
||||
ClosePhysicalCamera(device);
|
||||
ReleaseCamera(device);
|
||||
return false;
|
||||
goto failed;
|
||||
}
|
||||
SDL_SetSurfaceColorspace(surf, devspec->colorspace);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue