Skip to content

Commit

Permalink
GSDevice11: Don't try to get the adapter name twice
Browse files Browse the repository at this point in the history
  • Loading branch information
kamfretoz authored and lightningterror committed Oct 14, 2024
1 parent 1b82fac commit 444b110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/GS/Renderers/DX11/GSDevice11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 444b110

Please sign in to comment.