diff --git a/src/ImGui.NET.SampleProgram/SampleWindow.cs b/src/ImGui.NET.SampleProgram/SampleWindow.cs index d9938a1..9a7c836 100644 --- a/src/ImGui.NET.SampleProgram/SampleWindow.cs +++ b/src/ImGui.NET.SampleProgram/SampleWindow.cs @@ -157,7 +157,7 @@ namespace ImGuiNET public void RunWindowLoop() { _nativeWindow.Visible = true; - while (_nativeWindow.Visible) + while (_nativeWindow.Exists) { _previousFrameStartTime = DateTime.UtcNow;