From 993393a9392f0f79ad54ef43d1f8cc2c9399600f Mon Sep 17 00:00:00 2001 From: Joel Linn Date: Wed, 3 Jun 2020 22:16:32 +0200 Subject: [PATCH] [ImGui] Fix context initialization. Every context after the first wasn't initialized properly. --- src/xenia/ui/imgui_drawer.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xenia/ui/imgui_drawer.cc b/src/xenia/ui/imgui_drawer.cc index 184aa5837..cc58994e0 100644 --- a/src/xenia/ui/imgui_drawer.cc +++ b/src/xenia/ui/imgui_drawer.cc @@ -41,6 +41,7 @@ void ImGuiDrawer::Initialize() { // Setup ImGui internal state. // This will give us state we can swap to the ImGui globals when in use. internal_state_ = ImGui::CreateContext(); + ImGui::SetCurrentContext(internal_state_); auto& io = ImGui::GetIO();