Fonts: fixed calling AddFontXXX not invalidating texture for legacy backends.
This commit is contained in:
@@ -3580,6 +3580,7 @@ bool ImFontAtlasBuildAddFont(ImFontAtlas* atlas, ImFontConfig* src)
|
|||||||
if (!loader->FontSrcInit(atlas, src))
|
if (!loader->FontSrcInit(atlas, src))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
atlas->TexIsBuilt = false; // For legacy backends
|
||||||
ImFontAtlasBuildSetupFontSpecialGlyphs(atlas, font, src);
|
ImFontAtlasBuildSetupFontSpecialGlyphs(atlas, font, src);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user