mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-05 04:28:47 +02:00
ImFontAtlas: doesn't clear input data, left to the application. (#224)
This commit is contained in:
@ -156,6 +156,10 @@ bool ImGui_ImplGlfw_CreateDeviceObjects()
|
||||
// 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();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user