We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db431c1 commit d83a0e4Copy full SHA for d83a0e4
1 file changed
src/render/opengl/gl_engine_glfw.cpp
@@ -169,8 +169,14 @@ void GLEngineGLFW::configureImGui() {
169
ImGuiIO& io = ImGui::GetIO();
170
io.Fonts->Clear();
171
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
+
176
ImFontAtlas* _unused;
177
std::tie(_unused, regularFont, monoFont) = options::prepareImGuiFontsCallback();
178
179
+ ImGui_ImplOpenGL3_CreateFontsTexture();
180
}
181
182
0 commit comments