Commit eed2f485 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

d3d9: Handle stateblocks in d3d9_device_SetStreamSourceFreq().

parent 0ed36213
...@@ -3689,7 +3689,9 @@ static HRESULT WINAPI d3d9_device_SetStreamSourceFreq(IDirect3DDevice9Ex *iface, ...@@ -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); TRACE("iface %p, stream_idx %u, freq %u.\n", iface, stream_idx, freq);
wined3d_mutex_lock(); 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(); wined3d_mutex_unlock();
return hr; return hr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment