Skip to content

Commit

Permalink
Actually return an error when the surface is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 5, 2024
1 parent c057849 commit 065ec2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/render/SDL_render.c
Original file line number Diff line number Diff line change
Expand Up @@ -1159,6 +1159,7 @@ SDL_Renderer *SDL_CreateSoftwareRenderer(SDL_Surface *surface)

if (!surface) {
SDL_InvalidParamError("surface");
return NULL;
}

SDL_PropertiesID props = SDL_CreateProperties();
Expand Down

0 comments on commit 065ec2d

Please sign in to comment.