From 444b110411d10abdc1dcb0cd0f7f17ed720d8970 Mon Sep 17 00:00:00 2001 From: KamFretoZ <14798312+kamfretoz@users.noreply.github.com> Date: Mon, 14 Oct 2024 16:34:49 +0700 Subject: [PATCH] GSDevice11: Don't try to get the adapter name twice --- pcsx2/GS/Renderers/DX11/GSDevice11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/DX11/GSDevice11.cpp b/pcsx2/GS/Renderers/DX11/GSDevice11.cpp index ef0b4d0c58..27ab26c80e 100644 --- a/pcsx2/GS/Renderers/DX11/GSDevice11.cpp +++ b/pcsx2/GS/Renderers/DX11/GSDevice11.cpp @@ -148,8 +148,8 @@ bool GSDevice11::Create(GSVSyncMode vsync_mode, bool allow_present_throttle) wil::com_ptr_nothrow dxgi_device; if (m_dev.try_query_to(&dxgi_device) && SUCCEEDED(dxgi_device->GetParent(IID_PPV_ARGS(dxgi_adapter.put())))) { - Console.WriteLn(fmt::format("D3D Adapter: {}", D3D::GetAdapterName(dxgi_adapter.get()))); m_name = D3D::GetAdapterName(dxgi_adapter.get()); + Console.WriteLn(fmt::format("D3D Adapter: {}", m_name)); } else Console.Error("Failed to obtain D3D adapter name.");