add imgui function to ensure crossdll context is valid
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user