Sfoglia il codice sorgente

Merge pull request #4928 from JeffM2501/unload_default_font

[rtext] Properly clean up the default font on unload
pull/4937/head
Ray 2 mesi fa
committed by GitHub
parent
commit
4ac31f7cde
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: B5690EEEBB952194
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. +3
    -0
      src/rtext.c

+ 3
- 0
src/rtext.c Vedi File

@ -331,6 +331,9 @@ extern void UnloadFontDefault(void)
if (isGpuReady) UnloadTexture(defaultFont.texture);
RL_FREE(defaultFont.glyphs);
RL_FREE(defaultFont.recs);
defaultFont.glyphCount = 0;
defaultFont.glyphs = NULL;
defaultFont.recs = NULL;
}
#endif // SUPPORT_DEFAULT_FONT

Caricamento…
Annulla
Salva