diff --git a/Source/Core/VideoBackends/D3D/Render.cpp b/Source/Core/VideoBackends/D3D/Render.cpp index a14a71a24a..3c27a41d85 100644 --- a/Source/Core/VideoBackends/D3D/Render.cpp +++ b/Source/Core/VideoBackends/D3D/Render.cpp @@ -86,7 +86,6 @@ Renderer::Renderer() : ::Renderer(D3D::GetBackBufferWidth(), D3D::GetBackBufferH Renderer::~Renderer() { TeardownDeviceObjects(); - D3D::Close(); } void Renderer::SetupDeviceObjects() diff --git a/Source/Core/VideoBackends/D3D/main.cpp b/Source/Core/VideoBackends/D3D/main.cpp index a146a4d25a..f29e079d61 100644 --- a/Source/Core/VideoBackends/D3D/main.cpp +++ b/Source/Core/VideoBackends/D3D/main.cpp @@ -181,6 +181,8 @@ void VideoBackend::Shutdown() g_texture_cache.reset(); g_renderer.reset(); + D3D::Close(); + ShutdownShared(); }