Use NativeWindow.Exists instead of Visible to determine if program should exit main loop.

internals
Eric Mellino 7 years ago
parent c01b5adada
commit 17f05b9492
  1. 2
      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;

Loading…
Cancel
Save