mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Merge pull request #8122 from Pokechu22/dx11-dxgi_factory
DX11: Fix access violation on closing dolphin
This commit is contained in:
commit
204af41e73
1 changed files with 3 additions and 0 deletions
|
@ -111,7 +111,9 @@ bool Create(u32 adapter_index, bool enable_debug_layer)
|
||||||
{
|
{
|
||||||
PanicAlertT(
|
PanicAlertT(
|
||||||
"Failed to initialize Direct3D.\nMake sure your video card supports at least D3D 10.0");
|
"Failed to initialize Direct3D.\nMake sure your video card supports at least D3D 10.0");
|
||||||
|
dxgi_factory.Reset();
|
||||||
D3DCommon::UnloadLibraries();
|
D3DCommon::UnloadLibraries();
|
||||||
|
s_d3d11_library.Close();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,6 +157,7 @@ void Destroy()
|
||||||
else
|
else
|
||||||
NOTICE_LOG(VIDEO, "Successfully released all device references!");
|
NOTICE_LOG(VIDEO, "Successfully released all device references!");
|
||||||
|
|
||||||
|
dxgi_factory.Reset();
|
||||||
D3DCommon::UnloadLibraries();
|
D3DCommon::UnloadLibraries();
|
||||||
s_d3d11_library.Close();
|
s_d3d11_library.Close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue