Check for window_event_result::deleted for polygon_models_viewer polling loop

This is instead of using window_exists, which could give a false positive if a new window was allocated with the same pointer value as a deleted one.
This commit is contained in:
Chris Taylor 2016-10-28 15:29:14 +08:00
parent b2513ab9a0
commit 731777476f

View file

@ -2380,8 +2380,7 @@ static void polygon_models_viewer()
return;
}
while (window_exists(wind))
event_process();
while (event_process() != window_event_result::deleted) {}
}
namespace dsx {