HostDisplay: Remove parameters which get pulled from config

No point duplicating them.
This commit is contained in:
Connor McLaughlin
2022-10-13 23:07:23 +10:00
parent 43e959bdc9
commit 11ba87059e
14 changed files with 42 additions and 74 deletions

View File

@ -162,8 +162,7 @@ bool MainWindow::createDisplay(bool fullscreen, bool render_to_main)
g_emu_thread->connectDisplaySignals(m_display_widget);
if (!g_host_display->CreateRenderDevice(wi.value(), g_settings.gpu_adapter, g_settings.gpu_use_debug_device,
g_settings.gpu_threaded_presentation))
if (!g_host_display->CreateRenderDevice(wi.value()))
{
QMessageBox::critical(this, tr("Error"), tr("Failed to create host display device context."));
destroyDisplayWidget(true);

View File

@ -732,9 +732,7 @@ bool EmuThread::acquireHostDisplay(RenderAPI api)
return false;
}
if (!g_host_display->MakeRenderContextCurrent() ||
!g_host_display->InitializeRenderDevice(EmuFolders::Cache, g_settings.gpu_use_debug_device,
g_settings.gpu_threaded_presentation) ||
if (!g_host_display->MakeRenderContextCurrent() || !g_host_display->InitializeRenderDevice() ||
!ImGuiManager::Initialize() || !CommonHost::CreateHostDisplayResources())
{
ImGuiManager::Shutdown();