d3d9: Handle stateblocks in d3d9_device_SetStreamSourceFreq().

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 2019-11-11 19:56:02 -06:00 committed by Alexandre Julliard
parent 0ed36213f4
commit eed2f485a6
1 changed files with 3 additions and 1 deletions

View File

@ -3689,7 +3689,9 @@ static HRESULT WINAPI d3d9_device_SetStreamSourceFreq(IDirect3DDevice9Ex *iface,
TRACE("iface %p, stream_idx %u, freq %u.\n", iface, stream_idx, freq);
wined3d_mutex_lock();
hr = wined3d_device_set_stream_source_freq(device->wined3d_device, stream_idx, freq);
hr = wined3d_stateblock_set_stream_source_freq(device->update_state, stream_idx, freq);
if (SUCCEEDED(hr) && !device->recording)
hr = wined3d_device_set_stream_source_freq(device->wined3d_device, stream_idx, freq);
wined3d_mutex_unlock();
return hr;