mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
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:
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
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user