Properly clean up the default font on unload, it may be reused if the window is created again
This commit is contained in:
parent
7e07278368
commit
ebaa922f6b
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue