Henri Verbeet : d3d10core: Allow a NULL input layout to be set in IASetInputLayout().

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


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

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

d3d10core: Allow a NULL input layout to be set in IASetInputLayout().

---

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

diff --git a/dlls/d3d10core/device.c b/dlls/d3d10core/device.c
index 4898a09..6f96218 100644
--- a/dlls/d3d10core/device.c
+++ b/dlls/d3d10core/device.c
@@ -186,7 +186,7 @@ static void STDMETHODCALLTYPE d3d10_device_IASetInputLayout(ID3D10Device *iface,
     TRACE("iface %p, input_layout %p\n", iface, input_layout);
 
     IWineD3DDevice_SetVertexDeclaration(This->wined3d_device,
-            ((struct d3d10_input_layout *)input_layout)->wined3d_decl);
+            input_layout ? ((struct d3d10_input_layout *)input_layout)->wined3d_decl : NULL);
 }
 
 static void STDMETHODCALLTYPE d3d10_device_IASetVertexBuffers(ID3D10Device *iface,




More information about the wine-cvs mailing list