HostDisplay: Remove DestroyRenderDevice()

This commit is contained in:
Connor McLaughlin
2022-09-26 21:49:14 +10:00
parent 84917ec6aa
commit 6bafcea94f
13 changed files with 38 additions and 88 deletions

View File

@ -739,9 +739,8 @@ bool EmuThread::acquireHostDisplay(RenderAPI api)
{
ImGuiManager::Shutdown();
CommonHost::ReleaseHostDisplayResources();
g_host_display->DestroyRenderDevice();
emit destroyDisplayRequested();
g_host_display.reset();
emit destroyDisplayRequested();
return false;
}
@ -811,9 +810,8 @@ void EmuThread::releaseHostDisplay()
CommonHost::ReleaseHostDisplayResources();
ImGuiManager::Shutdown();
g_host_display->DestroyRenderDevice();
emit destroyDisplayRequested();
g_host_display.reset();
emit destroyDisplayRequested();
m_is_fullscreen = false;
}