mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 19:44:57 +00:00
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
2 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue