GSDevice11: Don't try to get the adapter name twice

This commit is contained in:
KamFretoZ 2024-10-14 16:34:49 +07:00 committed by lightningterror
parent 1b82fac70e
commit 444b110411
1 changed files with 1 additions and 1 deletions

View File

@ -148,8 +148,8 @@ bool GSDevice11::Create(GSVSyncMode vsync_mode, bool allow_present_throttle)
wil::com_ptr_nothrow<IDXGIDevice> 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.");