Skip to content

Commit d83a0e4

Browse files
committed
Revert "remove non-existent function calls"
This reverts commit 9b4159c.
1 parent db431c1 commit d83a0e4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/render/opengl/gl_engine_glfw.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,14 @@ void GLEngineGLFW::configureImGui() {
169169
ImGuiIO& io = ImGui::GetIO();
170170
io.Fonts->Clear();
171171

172+
// these are necessary if different fonts are loaded in the callback
173+
// (don't totally understand why, allegedly it may change in the future)
174+
ImGui_ImplOpenGL3_DestroyFontsTexture();
175+
172176
ImFontAtlas* _unused;
173177
std::tie(_unused, regularFont, monoFont) = options::prepareImGuiFontsCallback();
178+
179+
ImGui_ImplOpenGL3_CreateFontsTexture();
174180
}
175181

176182

0 commit comments

Comments
 (0)