[ImGui] Fix context initialization.

Every context after the first wasn't initialized properly.
This commit is contained in:
Joel Linn 2020-06-03 22:16:32 +02:00 committed by Rick Gibbed
parent ab2b9393c2
commit 993393a939
1 changed files with 1 additions and 0 deletions

View File

@ -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();