mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d: Do not report a root signature version higher than requested.
This fixes Shadow of the Tomb Raider crashing because of NULL root
signatures being passed since c002aee119
.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
1b66138006
commit
4576236199
@@ -2665,7 +2665,8 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CheckFeatureSupport(ID3D12Device *
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
data->HighestVersion = D3D_ROOT_SIGNATURE_VERSION_1_1;
|
||||
TRACE("Root signature requested %#x.\n", data->HighestVersion);
|
||||
data->HighestVersion = min(data->HighestVersion, D3D_ROOT_SIGNATURE_VERSION_1_1);
|
||||
|
||||
TRACE("Root signature version %#x.\n", data->HighestVersion);
|
||||
return S_OK;
|
||||
|
Reference in New Issue
Block a user