mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-14 15:42:49 +02:00
Do a full cleanup if renderer creation fails during autodetection
This commit is contained in:
@@ -643,7 +643,6 @@ static int PS2_CreateRenderer(SDL_Renderer *renderer, SDL_Window *window, SDL_Pr
|
||||
SDL_SetupRendererColorspace(renderer, create_props);
|
||||
|
||||
if (renderer->output_colorspace != SDL_COLORSPACE_SRGB) {
|
||||
SDL_free(renderer);
|
||||
return SDL_SetError("Unsupported output colorspace");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user