fix crash when selecting radar site with new ImGui contexts

This commit is contained in:
AdenKoperczak 2025-01-06 08:57:55 -05:00
parent 6d107f6c2d
commit 9bd5af03f9
3 changed files with 7 additions and 1 deletions

View file

@ -161,8 +161,12 @@ void DrawLayer::RenderWithoutImGui(
p->textureAtlasBuildCount_ = newTextureAtlasBuildCount;
}
void DrawLayer::ImGuiSelectContext()
{
ImGui::SetCurrentContext(p->imGuiContext_);
}
void DrawLayer::Render(const QMapLibre::CustomLayerRenderParameters& params)
void DrawLayer::Render(const QMapLibre::CustomLayerRenderParameters& params)
{
StartImGuiFrame();
RenderWithoutImGui(params);