Kaynağa Gözat

Properly clean up the default font on unload, it may be reused if the window is created again

pull/4928/head
Jeffery Myers 9 ay önce
ebeveyn
işleme
ebaa922f6b
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. +3
    -0
      src/rtext.c

+ 3
- 0
src/rtext.c Dosyayı Görüntüle

@ -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

Yükleniyor…
İptal
Kaydet