summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2022-02-25 20:41:18 +0100
committerRay <[email protected]>2022-02-25 20:41:18 +0100
commitead8003044aab21f8d155b91ec0bce90cd193500 (patch)
treea0e800ff452f4cc25646188bfee4f5310a8c166f
parent296b57e1f55f27b5d1f71a5cc8d623a2fbbde20b (diff)
downloadraylib-ead8003044aab21f8d155b91ec0bce90cd193500.tar.gz
raylib-ead8003044aab21f8d155b91ec0bce90cd193500.zip
Possible fix for #2360
-rw-r--r--src/rcore.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 58c8c4ce..51fb307e 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -752,6 +752,8 @@ void InitWindow(int width, int height, const char *title)
TRACELOG(LOG_INFO, " > raudio:.... not loaded (optional)");
#endif
+ memset(&CORE, 0, sizeof(CoreData)); // Clean CORE object memory
+
if ((title != NULL) && (title[0] != 0)) CORE.Window.title = title;
// Initialize required global values different than 0