d3d8: Stop setting the device state in d3d8_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:
parent
05fbe3b276
commit
b2a234fb7e
|
@ -3409,14 +3409,10 @@ static HRESULT WINAPI d3d8_device_SetStreamSource(IDirect3DDevice8 *iface,
|
||||||
hr = wined3d_stateblock_set_stream_source(device->update_state, stream_idx, wined3d_buffer, 0, stride);
|
hr = wined3d_stateblock_set_stream_source(device->update_state, stream_idx, wined3d_buffer, 0, stride);
|
||||||
if (SUCCEEDED(hr) && !device->recording)
|
if (SUCCEEDED(hr) && !device->recording)
|
||||||
{
|
{
|
||||||
hr = wined3d_device_set_stream_source(device->wined3d_device, stream_idx, wined3d_buffer, 0, 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();
|
||||||
|
|
Loading…
Reference in New Issue