mirror of
https://github.com/xenia-project/xenia.git
synced 2026-04-20 22:13:40 +00:00
Fix double window destroy.
This commit is contained in:
parent
fa9c681c7c
commit
3ac83b16c8
1 changed files with 4 additions and 0 deletions
|
|
@ -157,6 +157,10 @@ void Window::OnClose() {
|
|||
}
|
||||
|
||||
void Window::OnDestroy() {
|
||||
if (!context_) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (--elemental_initialization_count_ == 0) {
|
||||
el::Shutdown();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue