소스 검색

Merge pull request #4928 from JeffM2501/unload_default_font

[rtext] Properly clean up the default font on unload
pull/4937/head
Ray 5 달 전
committed by GitHub
부모
커밋
4ac31f7cde
No known key found for this signature in database 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

불러오는 중...
취소
저장