mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d: Check that the allocator type matches the list type in d3d12_command_list_Reset().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
committed by
Henri Verbeet
parent
b6d274e68e
commit
faec701cce
Notes:
Henri Verbeet
2025-09-17 12:57:42 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1736
@@ -2701,6 +2701,13 @@ static HRESULT STDMETHODCALLTYPE d3d12_command_list_Reset(ID3D12GraphicsCommandL
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
if (allocator_impl->type != list->type)
|
||||
{
|
||||
WARN("Command list types do not match (allocator %#x, list %#x).\n",
|
||||
allocator_impl->type, list->type);
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
if (list->is_recording)
|
||||
{
|
||||
WARN("Command list is in the recording state.\n");
|
||||
|
||||
Reference in New Issue
Block a user