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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (window_exists(wind))
|
while (event_process() != window_event_result::deleted) {}
|
||||||
event_process();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace dsx {
|
namespace dsx {
|
||||||
|
|
Loading…
Reference in a new issue