Commit 03f61dec authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent ee396dda
......@@ -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]);
}
}
......
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