Conor McCarthy : vkd3d: Ignore d3d12_command_list_IASetVertexBuffers() calls with NULL views.
Alexandre Julliard
julliard at winehq.org
Fri Oct 15 15:39:49 CDT 2021
Module: vkd3d
Branch: master
Commit: f172647d5eb0d300a2127b76aa3189b7d285cbf1
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=f172647d5eb0d300a2127b76aa3189b7d285cbf1
Author: Conor McCarthy <cmccarthy at codeweavers.com>
Date: Fri Oct 15 01:37:37 2021 +0200
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 at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
libs/vkd3d/command.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index 118fc4b..1db624e 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -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)
More information about the wine-cvs
mailing list