mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 06:11:46 +00:00
[host] dxgi: allow the backend to shutdown before freeing comRef globals
This commit is contained in:
parent
b94166177f
commit
544164f637
1 changed files with 3 additions and 1 deletions
|
@ -964,6 +964,9 @@ static bool dxgi_deinit(void)
|
||||||
if (this->dup && *this->dup)
|
if (this->dup && *this->dup)
|
||||||
dxgi_releaseFrame();
|
dxgi_releaseFrame();
|
||||||
|
|
||||||
|
// this MUST run before backend->free().
|
||||||
|
comRef_free();
|
||||||
|
|
||||||
if (this->backend)
|
if (this->backend)
|
||||||
{
|
{
|
||||||
this->backend->free();
|
this->backend->free();
|
||||||
|
@ -985,7 +988,6 @@ static bool dxgi_deinit(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
this->initialized = false;
|
this->initialized = false;
|
||||||
comRef_free();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue