GUI: set bigFont on font loading failure

issue #1228
This commit is contained in:
tildearrow 2023-07-10 14:36:44 -05:00
parent 7d8a61d6dc
commit 5619ae36c8
1 changed files with 1 additions and 0 deletions

View File

@ -5978,6 +5978,7 @@ bool FurnaceGUI::loop() {
ImGui::GetIO().Fonts->Clear();
mainFont=ImGui::GetIO().Fonts->AddFontDefault();
patFont=mainFont;
bigFont=mainFont;
if (rend) rend->destroyFontsTexture();
if (!ImGui::GetIO().Fonts->Build()) {
logE("error again while building font atlas!");