Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
[renderer] Use 0 adapter by default
Browse files Browse the repository at this point in the history
  • Loading branch information
espkk committed Jan 5, 2022
1 parent e73f97a commit 2f0bd8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/renderer/src/sdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ bool DX9RENDER::InitDevice(bool windowed, HWND _hwnd, long width, long height)
// Choose desired video adapter
auto adapters_num = d3d->GetAdapterCount();
if (videoAdapterIndex > adapters_num - 1)
videoAdapterIndex = adapters_num - 1;
videoAdapterIndex = 0U;

spdlog::info("Querying available DirectX 9 adapters... detected {}:", adapters_num);
for (UINT i = 0; i != adapters_num; ++i)
Expand All @@ -742,7 +742,7 @@ bool DX9RENDER::InitDevice(bool windowed, HWND _hwnd, long width, long height)
{
D3DADAPTER_IDENTIFIER9 id;
d3d->GetAdapterIdentifier(i, 0, &id);
spdlog::info("{}: {}", i, id.Description);
spdlog::info("{}: {} ({}) ", i, id.Description, id.DeviceName);
}
}
spdlog::info("Using adapter with index {} (configurable by setting adapter=<index> inside engine.ini)",
Expand Down

0 comments on commit 2f0bd8e

Please sign in to comment.