mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-05 12:57:49 +00:00
Clear intermediate errors if we successfully create a window.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user