[ImGui] Fix context initialization.
Every context after the first wasn't initialized properly.
This commit is contained in:
@@ -41,6 +41,7 @@ void ImGuiDrawer::Initialize() {
|
|||||||
// Setup ImGui internal state.
|
// Setup ImGui internal state.
|
||||||
// This will give us state we can swap to the ImGui globals when in use.
|
// This will give us state we can swap to the ImGui globals when in use.
|
||||||
internal_state_ = ImGui::CreateContext();
|
internal_state_ = ImGui::CreateContext();
|
||||||
|
ImGui::SetCurrentContext(internal_state_);
|
||||||
|
|
||||||
auto& io = ImGui::GetIO();
|
auto& io = ImGui::GetIO();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user