Actually return an error when the surface is invalid

This commit is contained in:
Sam Lantinga 2024-07-05 08:12:05 -07:00
parent c057849035
commit 065ec2d518

View file

@ -1159,6 +1159,7 @@ SDL_Renderer *SDL_CreateSoftwareRenderer(SDL_Surface *surface)
if (!surface) {
SDL_InvalidParamError("surface");
return NULL;
}
SDL_PropertiesID props = SDL_CreateProperties();