Henri Verbeet : d3d10core: Allow a NULL vertex buffer to be set in IASetVertexBuffers().

Alexandre Julliard julliard at winehq.org
Wed Dec 2 10:22:12 CST 2009


Module: wine
Branch: master
Commit: 03f61decc987a0a5c55da43a42cb843040b9c916
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=03f61decc987a0a5c55da43a42cb843040b9c916

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Dec  2 10:41:22 2009 +0100

d3d10core: Allow a NULL vertex buffer to be set in IASetVertexBuffers().

---

 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]);
     }
 }
 




More information about the wine-cvs mailing list