mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
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 a new issue