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

d3d9: Avoid a dead assignment in d3d9_device_SetStreamSource() (Coverity).

parent 7622d97f
......@@ -3688,17 +3688,18 @@ static HRESULT WINAPI d3d9_device_SetStreamSource(IDirect3DDevice9Ex *iface,
const struct wined3d_stream_state *stream;
state = wined3d_stateblock_get_state(device->state);
stream = &state->streams[stream_idx];
wined3d_buffer = stream->buffer;
offset = stream->offset;
stride = stream->stride;
}
if (!buffer_impl)
wined3d_buffer = NULL;
}
else if (buffer_impl->draw_buffer)
{
wined3d_buffer = buffer_impl->draw_buffer;
}
else
{
wined3d_buffer = buffer_impl->wined3d_buffer;
}
hr = wined3d_stateblock_set_stream_source(device->update_state, stream_idx, wined3d_buffer, offset, stride);
if (SUCCEEDED(hr) && !device->recording)
......
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