mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Fonts: fixed calling AddFontXXX not invalidating texture for legacy backends.
This commit is contained in:
parent
44498825cd
commit
9324961cd2
1 changed files with 1 additions and 0 deletions
|
|
@ -3580,6 +3580,7 @@ bool ImFontAtlasBuildAddFont(ImFontAtlas* atlas, ImFontConfig* src)
|
|||
if (!loader->FontSrcInit(atlas, src))
|
||||
return false;
|
||||
|
||||
atlas->TexIsBuilt = false; // For legacy backends
|
||||
ImFontAtlasBuildSetupFontSpecialGlyphs(atlas, font, src);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue