[PATCH 3/5] d3d10core: Allow a NULL vertex buffer to be set in IASetVertexBuffers().

Henri Verbeet hverbeet at codeweavers.com
Wed Dec 2 03:41:22 CST 2009


---
 dlls/d3d10core/device.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/d3d10core/device.c b/dlls/d3d10core/device.c
index 6f96218..cfc7dec 100644
--- a/dlls/d3d10core/device.c
+++ b/dlls/d3d10core/device.c
@@ -202,7 +202,8 @@ static void STDMETHODCALLTYPE d3d10_device_IASetVertexBuffers(ID3D10Device *ifac
     for (i = 0; i < buffer_count; ++i)
     {
         IWineD3DDevice_SetStreamSource(This->wined3d_device, start_slot,
-                ((struct d3d10_buffer *)buffers[i])->wined3d_buffer, offsets[i], strides[i]);
+                buffers[i] ? ((struct d3d10_buffer *)buffers[i])->wined3d_buffer : NULL,
+                offsets[i], strides[i]);
     }
 }
 
-- 
1.6.4.4




More information about the wine-patches mailing list