mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-23 14:31:56 +00:00
Clear intermediate errors if we successfully create a window.
This commit is contained in:
parent
66ddabde86
commit
8fdca9c691
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue