mirror of
https://github.com/libsdl-org/SDL.git
synced 2024-11-30 15:23:28 +08:00
Clear intermediate errors if we successfully create a window.
This commit is contained in:
parent
66ddabde86
commit
8fdca9c691
@ -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…
Reference in New Issue
Block a user