Clear intermediate errors if we successfully create a window.
This commit is contained in:
1 parent
66ddabde86
commit
8fdca9c691
1 file changed
+2
@@ -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