Browse Source

Clear intermediate errors if we successfully create a window.

Sam Lantinga 8 months ago
parent
commit
8fdca9c691
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/video/SDL_video.c

+ 2 - 0
src/video/SDL_video.c

@@ -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;
 }