Skip to content

Commit ebb20b4

Browse files
committed
WIP - Fonts: fixed calling AddFontXXX not invalidating texture for legacy backends.
1 parent ee36d5f commit ebb20b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

imgui_draw.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -3583,6 +3583,7 @@ bool ImFontAtlasBuildAddFont(ImFontAtlas* atlas, ImFontConfig* src)
35833583
if (!loader->FontSrcInit(atlas, src))
35843584
return false;
35853585

3586+
atlas->TexIsBuilt = false; // For legacy backends
35863587
ImFontAtlasBuildSetupFontSpecialGlyphs(atlas, font, src);
35873588
return true;
35883589
}

0 commit comments

Comments
 (0)