mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-22 01:54:21 +00:00
ImFontAtlas: Fixed multiple rebuild with same inputs erroneously increased ConfigDataCount. CI: Update Ubuntu 18.04 > 20.04 (motivated by #3369)
Fix Freetype warning.
This commit is contained in:
parent
ede8825fb2
commit
90b152f265
3 changed files with 3 additions and 2 deletions
|
|
@ -2328,6 +2328,7 @@ void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* f
|
|||
font->ClearOutputData();
|
||||
font->FontSize = font_config->SizePixels;
|
||||
font->ConfigData = font_config;
|
||||
font->ConfigDataCount = 0;
|
||||
font->ContainerAtlas = atlas;
|
||||
font->Ascent = ascent;
|
||||
font->Descent = descent;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue