[ImGui] Fix context initialization.
Every context after the first wasn't initialized properly.
This commit is contained in:
parent
ab2b9393c2
commit
993393a939
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue