From 17f05b9492e5dce68f7107814ac8ca1b207a52bd Mon Sep 17 00:00:00 2001 From: Eric Mellino Date: Thu, 26 Oct 2017 15:54:54 -0700 Subject: [PATCH] Use NativeWindow.Exists instead of Visible to determine if program should exit main loop. --- src/ImGui.NET.SampleProgram/SampleWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;