소스 검색

Possible fix for #2360

Ray 3 년 전
부모
커밋
ead8003044
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/rcore.c

+ 2 - 0
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