d3d9: Stop setting the device state 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:
parent
8ff3041dd4
commit
705d74f42d
|
@ -3737,8 +3737,6 @@ static HRESULT WINAPI d3d9_device_SetStreamSourceFreq(IDirect3DDevice9Ex *iface,
|
||||||
|
|
||||||
wined3d_mutex_lock();
|
wined3d_mutex_lock();
|
||||||
hr = wined3d_stateblock_set_stream_source_freq(device->update_state, 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();
|
wined3d_mutex_unlock();
|
||||||
|
|
||||||
return hr;
|
return hr;
|
||||||
|
|
Loading…
Reference in New Issue