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:
parent
b2513ab9a0
commit
731777476f
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue