From 8fdca9c691c90d4ce4379db33ce835bcbe51439e Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 7 Aug 2024 10:53:23 -0700
Subject: [PATCH] Clear intermediate errors if we successfully create a window.
---
src/video/SDL_video.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index 590606eb1e119..a8421a2730397 100644
--- a/src/video/SDL_video.c
+++ b/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;
}