D3D: Move device release from Renderer destructor to shutdown

Necessary if we wish to have GPU objects in our base class, as otherwise
the device will be released before the objects.
This commit is contained in:
Stenzek 2017-11-21 19:56:22 +10:00
parent c5a89b6483
commit 5860c97144
2 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,6 @@ Renderer::Renderer() : ::Renderer(D3D::GetBackBufferWidth(), D3D::GetBackBufferH
Renderer::~Renderer()
{
TeardownDeviceObjects();
D3D::Close();
}
void Renderer::SetupDeviceObjects()

View File

@ -181,6 +181,8 @@ void VideoBackend::Shutdown()
g_texture_cache.reset();
g_renderer.reset();
D3D::Close();
ShutdownShared();
}