[PATCH vkd3d 06/10] vkd3d: Ignore IASetVertexBuffers for NULL views.

Conor McCarthy cmccarthy at codeweavers.com
Fri Sep 17 10:37:04 CDT 2021


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

Signed-off-by: Conor McCarthy <cmccarthy at codeweavers.com>
---
 libs/vkd3d/command.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index e81feea4..fc06f28d 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -4420,6 +4420,10 @@ static void STDMETHODCALLTYPE d3d12_command_list_IASetVertexBuffers(ID3D12Graphi
         return;
     }
 
+    /* Native drivers appear to ignore this call. Buffer bindings are kept as-is. */
+    if (!views)
+        return;
+
     for (i = 0; i < view_count; ++i)
     {
         if (views[i].BufferLocation)
-- 
2.32.0




More information about the wine-devel mailing list