Skip to content

Commit

Permalink
Add logging for unloaded fonts in case a similar error happens again.
Browse files Browse the repository at this point in the history
  • Loading branch information
AdenKoperczak committed Dec 31, 2024
1 parent f34a3e2 commit f7a55ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scwx-qt/source/scwx/qt/map/map_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f7a55ec

Please sign in to comment.