vkd3d: Ignore d3d12_command_list_IASetVertexBuffers() calls with NULL views.

Part of a vkd3d-proton patch by Hans-Kristian Arntzen.

Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Conor McCarthy 2021-10-15 01:37:37 +02:00 committed by Alexandre Julliard
parent e7e46be371
commit f172647d5e

View File

@ -4498,6 +4498,12 @@ static void STDMETHODCALLTYPE d3d12_command_list_IASetVertexBuffers(ID3D12Graphi
return;
}
if (!views)
{
WARN("NULL \"views\" pointer specified.\n");
return;
}
for (i = 0; i < view_count; ++i)
{
if (views[i].BufferLocation)