camera: Delete some failure code that should have been removed before.

This commit is contained in:
Ryan C. Gordon committed 2025-03-01 14:52:56 -05:00
1 parent f868408a3a
commit a88105784f
1 file changed
+1 -3
+1 -3
View File
@@ -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);