[c-host] dxgi: close the desktop on deinit

This commit is contained in:
Geoffrey McRae committed 2020-04-12 13:46:56 +10:00
1 parent d3836d4548
commit 7018a3e737
3 files changed
+9 -2

No files matched your search

+1 -1
View File
@@ -1 +1 @@
B1-167-gdbd7db7787+1
B1-168-gd3836d4548+1
@@ -612,6 +612,13 @@ static bool dxgi_deinit()
}
LG_LOCK_FREE(this->deviceContextLock);
if (this->desktop)
{
CloseDesktop(this->desktop);
this->desktop = NULL;
}
this->initialized = false;
return true;
}
+1 -1
View File
@@ -1475,7 +1475,7 @@ static int lg_run()
if (!lgmpClientSessionValid(state.lgmp))
{
DEBUG_WARN("Session is invalid, has the host shutdown?");
break;
// break;
}
(void)closeAlert;