Sfoglia il codice sorgente

Clear intermediate errors if we successfully create a window.

Sam Lantinga 1 anno fa
parent
commit
8fdca9c691
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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;
 }