mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 17:00:05 +00:00
fix crash when selecting radar site with new ImGui contexts
This commit is contained in:
parent
6d107f6c2d
commit
9bd5af03f9
3 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue