ImFontAtlas: made calling ClearFonts() call ClearInputData(). (#8174, #6556, #6336, #4723)

This commit is contained in:
ocornut
2025-01-23 11:31:32 +01:00
parent 71da34c48c
commit 10199341b1
3 changed files with 5 additions and 2 deletions

View File

@@ -2520,6 +2520,7 @@ void ImFontAtlas::ClearTexData()
void ImFontAtlas::ClearFonts()
{
IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!");
ClearInputData();
Fonts.clear_delete();
TexReady = false;
}