Przeglądaj źródła

Possible fix for #2360

pull/2362/head
Ray 3 lat temu
rodzic
commit
ead8003044
1 zmienionych plików z 2 dodań i 0 usunięć
  1. +2
    -0
      src/rcore.c

+ 2
- 0
src/rcore.c Wyświetl plik

@ -752,6 +752,8 @@ void InitWindow(int width, int height, const char *title)
TRACELOG(LOG_INFO, " > raudio:.... not loaded (optional)"); TRACELOG(LOG_INFO, " > raudio:.... not loaded (optional)");
#endif #endif
memset(&CORE, 0, sizeof(CoreData)); // Clean CORE object memory
if ((title != NULL) && (title[0] != 0)) CORE.Window.title = title; if ((title != NULL) && (title[0] != 0)) CORE.Window.title = title;
// Initialize required global values different than 0 // Initialize required global values different than 0

Ładowanie…
Anuluj
Zapisz