vkd3d: Check for index buffer location zero.

VK_EXT_robustness2 does not support null index buffers so we only
warn and return immediately.
This commit is contained in:
Conor McCarthy 2023-04-17 13:07:38 +10:00 committed by Alexandre Julliard
parent 5244fa572f
commit 333fdf7c74
Notes: Alexandre Julliard 2023-04-19 22:11:46 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/163

View File

@ -4653,6 +4653,11 @@ static void STDMETHODCALLTYPE d3d12_command_list_IASetIndexBuffer(ID3D12Graphics
WARN("Ignoring NULL index buffer view.\n"); WARN("Ignoring NULL index buffer view.\n");
return; return;
} }
if (!view->BufferLocation)
{
WARN("Ignoring index buffer location 0.\n");
return;
}
vk_procs = &list->device->vk_procs; vk_procs = &list->device->vk_procs;