浏览代码

Merge pull request #4928 from JeffM2501/unload_default_font

[rtext] Properly clean up the default font on unload
pull/4937/head
Ray 3 周前
committed by GitHub
父节点
当前提交
4ac31f7cde
找不到此签名对应的密钥 GPG 密钥 ID: B5690EEEBB952194
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      src/rtext.c

+ 3
- 0
src/rtext.c 查看文件

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

正在加载...
取消
保存