Skip to content
Permalink
Browse files

Merge pull request #8122 from Pokechu22/dx11-dxgi_factory

DX11: Fix access violation on closing dolphin
  • Loading branch information...
stenzek committed May 27, 2019
2 parents f92c17e + 69d9d9f commit 204af41e735c7c107d228e043488c2f891a03547
Showing with 3 additions and 0 deletions.
  1. +3 −0 Source/Core/VideoBackends/D3D/D3DBase.cpp
@@ -111,7 +111,9 @@ bool Create(u32 adapter_index, bool enable_debug_layer)
{
PanicAlertT(
"Failed to initialize Direct3D.\nMake sure your video card supports at least D3D 10.0");
dxgi_factory.Reset();
D3DCommon::UnloadLibraries();
s_d3d11_library.Close();
return false;
}

@@ -155,6 +157,7 @@ void Destroy()
else
NOTICE_LOG(VIDEO, "Successfully released all device references!");

dxgi_factory.Reset();
D3DCommon::UnloadLibraries();
s_d3d11_library.Close();
}

0 comments on commit 204af41

Please sign in to comment.
You can’t perform that action at this time.