Commit 57c57fb5 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

d3d9: Stop setting the device state in d3d9_device_SetStreamSource().

parent 821ba100
...@@ -3680,14 +3680,10 @@ static HRESULT WINAPI d3d9_device_SetStreamSource(IDirect3DDevice9Ex *iface, ...@@ -3680,14 +3680,10 @@ static HRESULT WINAPI d3d9_device_SetStreamSource(IDirect3DDevice9Ex *iface,
hr = wined3d_stateblock_set_stream_source(device->update_state, stream_idx, wined3d_buffer, offset, stride); hr = wined3d_stateblock_set_stream_source(device->update_state, stream_idx, wined3d_buffer, offset, stride);
if (SUCCEEDED(hr) && !device->recording) if (SUCCEEDED(hr) && !device->recording)
{ {
hr = wined3d_device_set_stream_source(device->wined3d_device, stream_idx, wined3d_buffer, offset, stride); if (buffer_impl && buffer_impl->draw_buffer)
if (SUCCEEDED(hr)) device->sysmem_vb |= (1u << stream_idx);
{ else
if (buffer_impl && buffer_impl->draw_buffer) device->sysmem_vb &= ~(1u << stream_idx);
device->sysmem_vb |= (1u << stream_idx);
else
device->sysmem_vb &= ~(1u << stream_idx);
}
} }
wined3d_mutex_unlock(); wined3d_mutex_unlock();
......
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