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:
parent
c5a89b6483
commit
5860c97144
|
@ -86,7 +86,6 @@ Renderer::Renderer() : ::Renderer(D3D::GetBackBufferWidth(), D3D::GetBackBufferH
|
|||
Renderer::~Renderer()
|
||||
{
|
||||
TeardownDeviceObjects();
|
||||
D3D::Close();
|
||||
}
|
||||
|
||||
void Renderer::SetupDeviceObjects()
|
||||
|
|
|
@ -181,6 +181,8 @@ void VideoBackend::Shutdown()
|
|||
g_texture_cache.reset();
|
||||
g_renderer.reset();
|
||||
|
||||
D3D::Close();
|
||||
|
||||
ShutdownShared();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue