ImFontAtlas: doesn't clear input data, left to the application. (#224)

This commit is contained in:
ocornut
2015-05-12 15:16:12 +01:00
parent 4b088ec7e8
commit 5df542c3c0
5 changed files with 16 additions and 1 deletions

View File

@ -224,6 +224,10 @@ static void ImGui_ImplDX9_CreateFontsTexture()
// Store our identifier
io.Fonts->TexID = (void *)pTexture;
// Cleanup (don't clear the input data if you want to append new fonts later)
io.Fonts->ClearInputData();
io.Fonts->ClearTexData();
}
bool ImGui_ImplDX9_CreateDeviceObjects()