HostDisplay: Remove DestroyRenderDevice()
This commit is contained in:
@@ -204,11 +204,11 @@ void DisplaySettingsWidget::populateGPUAdaptersAndResolutions()
|
||||
{
|
||||
#ifdef _WIN32
|
||||
case GPURenderer::HardwareD3D11:
|
||||
aml = FrontendCommon::D3D11HostDisplay::StaticGetAdapterAndModeList();
|
||||
aml = D3D11HostDisplay::StaticGetAdapterAndModeList();
|
||||
break;
|
||||
|
||||
case GPURenderer::HardwareD3D12:
|
||||
aml = FrontendCommon::D3D12HostDisplay::StaticGetAdapterAndModeList();
|
||||
aml = D3D12HostDisplay::StaticGetAdapterAndModeList();
|
||||
break;
|
||||
#endif
|
||||
#ifdef WITH_VULKAN
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user