add imgui function to ensure crossdll context is valid

This commit is contained in:
SweetId
2023-09-19 20:16:07 -04:00
parent eddcd4b906
commit a08a9b377c
3 changed files with 29 additions and 1 deletions

View File

@@ -84,6 +84,7 @@ int WinMain(int argc, char* argv[])
float deltaTime = updateClock.GetElapsedTime().AsSeconds();
Nz::Imgui::Instance()->Update(window, deltaTime);
ImGui::EnsureContextOnThisThread();
ImGui::Begin("Loop Window");
ImGui::Image(logo.get());