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

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-02-03 21:17:42 -06:00 committed by Alexandre Julliard
parent 821ba10060
commit 57c57fb5a1
1 changed files with 4 additions and 8 deletions

View File

@ -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);
if (SUCCEEDED(hr) && !device->recording)
{
hr = wined3d_device_set_stream_source(device->wined3d_device, stream_idx, wined3d_buffer, offset, stride);
if (SUCCEEDED(hr))
{
if (buffer_impl && buffer_impl->draw_buffer)
device->sysmem_vb |= (1u << stream_idx);
else
device->sysmem_vb &= ~(1u << stream_idx);
}
if (buffer_impl && buffer_impl->draw_buffer)
device->sysmem_vb |= (1u << stream_idx);
else
device->sysmem_vb &= ~(1u << stream_idx);
}
wined3d_mutex_unlock();