1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-11 10:24:10 +01:00

[dxgi] Change reported UMD driver version

Fixes a potential crash in Hunt Showdown.
This commit is contained in:
Philip Rebohle 2024-08-15 21:57:23 +02:00
parent 71e44b380d
commit 02d8fa593b

View File

@ -127,10 +127,13 @@ namespace dxvk {
|| InterfaceName == __uuidof(ID3D10Device1)) || InterfaceName == __uuidof(ID3D10Device1))
hr = S_OK; hr = S_OK;
// We can't really reconstruct the version numbers // Windows drivers return something along the lines of 32.0.xxxxx.yyyy,
// returned by Windows drivers from Vulkan data // so just be conservative here and return a high number. We cannot
if (SUCCEEDED(hr) && pUMDVersion) // reconstruct meaningful UMD versions from Vulkan driver versions.
pUMDVersion->QuadPart = INT64_MAX; if (SUCCEEDED(hr) && pUMDVersion) {
pUMDVersion->HighPart = 0x00200000u;
pUMDVersion->LowPart = 0xffffffffu;
}
if (FAILED(hr)) { if (FAILED(hr)) {
Logger::err("DXGI: CheckInterfaceSupport: Unsupported interface"); Logger::err("DXGI: CheckInterfaceSupport: Unsupported interface");