mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:50:37 +00:00
d3d9: Handle stateblocks 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:
parent
fa4b0690a7
commit
d028e44d73
|
@ -3630,13 +3630,17 @@ static HRESULT WINAPI d3d9_device_SetStreamSource(IDirect3DDevice9Ex *iface,
|
|||
else
|
||||
wined3d_buffer = buffer_impl->wined3d_buffer;
|
||||
|
||||
hr = wined3d_device_set_stream_source(device->wined3d_device, 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 (buffer_impl && buffer_impl->draw_buffer)
|
||||
device->sysmem_vb |= (1u << stream_idx);
|
||||
else
|
||||
device->sysmem_vb &= ~(1u << stream_idx);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
wined3d_mutex_unlock();
|
||||
|
|
Loading…
Reference in a new issue