Fix double window destroy.
This commit is contained in:
parent
fa9c681c7c
commit
3ac83b16c8
|
@ -157,6 +157,10 @@ void Window::OnClose() {
|
|||
}
|
||||
|
||||
void Window::OnDestroy() {
|
||||
if (!context_) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (--elemental_initialization_count_ == 0) {
|
||||
el::Shutdown();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue