From f7a55ec85b7a64468869819240ffd2ca299f095f Mon Sep 17 00:00:00 2001 From: AdenKoperczak Date: Tue, 31 Dec 2024 13:03:12 -0500 Subject: [PATCH] Add logging for unloaded fonts in case a similar error happens again. --- scwx-qt/source/scwx/qt/map/map_widget.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scwx-qt/source/scwx/qt/map/map_widget.cpp b/scwx-qt/source/scwx/qt/map/map_widget.cpp index df45024a..d569f27e 100644 --- a/scwx-qt/source/scwx/qt/map/map_widget.cpp +++ b/scwx-qt/source/scwx/qt/map/map_widget.cpp @@ -1619,6 +1619,11 @@ void MapWidgetImpl::ImGuiCheckFonts() ImGui_ImplOpenGL3_CreateFontsTexture(); } + if (!model::ImGuiContextModel::Instance().font_atlas()->IsBuilt()) + { + logger_->error("ImGui font atlas could not be built."); + } + imGuiFontsBuildCount_ = currentImGuiFontsBuildCount; }