Modified font atlas not build logging to only log once

This commit is contained in:
AdenKoperczak 2025-01-10 09:57:38 -05:00
parent f7a55ec85b
commit 2e973bf654

View file

@ -1619,9 +1619,12 @@ void MapWidgetImpl::ImGuiCheckFonts()
ImGui_ImplOpenGL3_CreateFontsTexture();
}
if (!model::ImGuiContextModel::Instance().font_atlas()->IsBuilt())
static bool haveLogged = false;
if (!model::ImGuiContextModel::Instance().font_atlas()->IsBuilt() &&
!haveLogged)
{
logger_->error("ImGui font atlas could not be built.");
haveLogged = true;
}
imGuiFontsBuildCount_ = currentImGuiFontsBuildCount;