mirror of
https://github.com/raysan5/raylib.git
synced 2025-11-05 02:04:25 +00:00
Merge pull request #4928 from JeffM2501/unload_default_font
[rtext] Properly clean up the default font on unload
This commit is contained in:
@@ -331,6 +331,9 @@ extern void UnloadFontDefault(void)
|
|||||||
if (isGpuReady) UnloadTexture(defaultFont.texture);
|
if (isGpuReady) UnloadTexture(defaultFont.texture);
|
||||||
RL_FREE(defaultFont.glyphs);
|
RL_FREE(defaultFont.glyphs);
|
||||||
RL_FREE(defaultFont.recs);
|
RL_FREE(defaultFont.recs);
|
||||||
|
defaultFont.glyphCount = 0;
|
||||||
|
defaultFont.glyphs = NULL;
|
||||||
|
defaultFont.recs = NULL;
|
||||||
}
|
}
|
||||||
#endif // SUPPORT_DEFAULT_FONT
|
#endif // SUPPORT_DEFAULT_FONT
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user