mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
D3D12: Cleanup startup/shutdown process
Sorts out references that cause some modules to be kept around after backend shutdown. Should also solve the issue with errors being thrown due to the config being loaded after device creation, leading to the incorrect device being used in a multi-adapter system.
This commit is contained in:
@ -224,8 +224,6 @@ Renderer::Renderer(void*& window_handle)
|
||||
return;
|
||||
}
|
||||
|
||||
D3D::Create((HWND)window_handle);
|
||||
|
||||
s_backbuffer_width = D3D::GetBackBufferWidth();
|
||||
s_backbuffer_height = D3D::GetBackBufferHeight();
|
||||
|
||||
@ -283,7 +281,6 @@ Renderer::~Renderer()
|
||||
D3D::EndFrame();
|
||||
D3D::WaitForOutstandingRenderingToComplete();
|
||||
TeardownDeviceObjects();
|
||||
D3D::Close();
|
||||
}
|
||||
|
||||
void Renderer::RenderText(const std::string& text, int left, int top, u32 color)
|
||||
|
Reference in New Issue
Block a user