From 187c5aa092700c372f290b4c1bed96bc07dad4a7 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sun, 26 Nov 2017 16:18:32 +0100 Subject: [PATCH] [dxgi] DxgiAdapter::GetDesc now returns correct adapter name --- src/dxgi/dxgi_adapter.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dxgi/dxgi_adapter.cpp b/src/dxgi/dxgi_adapter.cpp index 2b7b61c7..86697113 100644 --- a/src/dxgi/dxgi_adapter.cpp +++ b/src/dxgi/dxgi_adapter.cpp @@ -76,6 +76,11 @@ namespace dxvk { HRESULT hr = this->GetDesc1(&desc1); if (SUCCEEDED(hr)) { + std::memcpy( + pDesc->Description, + desc1.Description, + sizeof(pDesc->Description)); + pDesc->VendorId = desc1.VendorId; pDesc->DeviceId = desc1.DeviceId; pDesc->SubSysId = desc1.SubSysId;