Clear intermediate errors if we successfully create a window.

This commit is contained in:
Sam Lantinga 2024-08-07 10:53:23 -07:00
parent 66ddabde86
commit 8fdca9c691

View File

@ -2464,6 +2464,8 @@ SDL_Window *SDL_CreateWindowWithProperties(SDL_PropertiesID props)
/* Make sure window pixel size is up to date */
SDL_CheckWindowPixelSizeChanged(window);
SDL_ClearError();
return window;
}