Zebediah Figura : d3d9: Stop setting the device state in d3d9_device_SetStreamSourceFreq().

Alexandre Julliard julliard at winehq.org
Thu Feb 6 15:44:18 CST 2020


Module: wine
Branch: master
Commit: 705d74f42d68cb4fe0a70e089388e665c335dffa
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=705d74f42d68cb4fe0a70e089388e665c335dffa

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Mon Feb  3 21:17:45 2020 -0600

d3d9: Stop setting the device state in d3d9_device_SetStreamSourceFreq().

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d9/device.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index 87d7db3d00..da884544ea 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -3737,8 +3737,6 @@ static HRESULT WINAPI d3d9_device_SetStreamSourceFreq(IDirect3DDevice9Ex *iface,
 
     wined3d_mutex_lock();
     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;




More information about the wine-cvs mailing list