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

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