mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
DX9/DX11: Fixing some maybe possible crashes if a game was started, the config dialog opened and the game closed again. Due to other issues this still happens quite often though...
Various warning fixes. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6684 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
603c99f64f
commit
07d947c834
7 changed files with 44 additions and 17 deletions
|
@ -167,7 +167,7 @@ void DllConfig(void *_hParent)
|
|||
if (SUCCEEDED(hr)) hr = D3D::LoadD3D();
|
||||
if (FAILED(hr))
|
||||
{
|
||||
if (!s_PluginInitialized) D3D::UnloadDXGI();
|
||||
D3D::UnloadDXGI();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -212,11 +212,8 @@ void DllConfig(void *_hParent)
|
|||
diag->ShowModal();
|
||||
diag->Destroy();
|
||||
|
||||
if (!s_PluginInitialized)
|
||||
{
|
||||
D3D::UnloadDXGI();
|
||||
D3D::UnloadD3D();
|
||||
}
|
||||
D3D::UnloadDXGI();
|
||||
D3D::UnloadD3D();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue