Commit ee396dda authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent 36823dd9
...@@ -186,7 +186,7 @@ static void STDMETHODCALLTYPE d3d10_device_IASetInputLayout(ID3D10Device *iface, ...@@ -186,7 +186,7 @@ static void STDMETHODCALLTYPE d3d10_device_IASetInputLayout(ID3D10Device *iface,
TRACE("iface %p, input_layout %p\n", iface, input_layout); TRACE("iface %p, input_layout %p\n", iface, input_layout);
IWineD3DDevice_SetVertexDeclaration(This->wined3d_device, 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, static void STDMETHODCALLTYPE d3d10_device_IASetVertexBuffers(ID3D10Device *iface,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment