From d04860ed4bbb730a211031497ee2ea55559aa2bf Mon Sep 17 00:00:00 2001 From: SweetId <2630750+SweetId@users.noreply.github.com> Date: Sun, 8 Oct 2023 22:33:22 -0400 Subject: [PATCH] Removing Instance() call --- src/NazaraEditor/Editor/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NazaraEditor/Editor/main.cpp b/src/NazaraEditor/Editor/main.cpp index df749ea..65207c0 100644 --- a/src/NazaraEditor/Editor/main.cpp +++ b/src/NazaraEditor/Editor/main.cpp @@ -25,7 +25,10 @@ int WinMain(int argc, char* argv[]) NazaraUnused(argc); NazaraUnused(argv); - Nz::EditorApplication& app = Nz::EditorApplication::Instance(); + EditorApplication app; + + ImGui::EnsureContextOnThisThread(); + app.RegisterWindow(); app.RegisterWindow(); app.RegisterWindow();