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

Alexandre Julliard julliard at winehq.org
Tue Jan 28 15:35:24 CST 2020


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Mon Jan 27 09:23:15 2020 -0600

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

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 | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index d08d052284..441bfd2f44 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -2331,22 +2331,11 @@ static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_device_SetRenderState(IDirect3DDevi
         D3DRENDERSTATETYPE state, DWORD value)
 {
     struct d3d9_device *device = impl_from_IDirect3DDevice9Ex(iface);
-    struct wined3d_color factor;
 
     TRACE("iface %p, state %#x, value %#x.\n", iface, state, value);
 
     wined3d_mutex_lock();
     wined3d_stateblock_set_render_state(device->update_state, state, value);
-    if (!device->recording)
-    {
-        if (state == D3DRS_BLENDFACTOR)
-        {
-            wined3d_color_from_d3dcolor(&factor, value);
-            wined3d_device_set_blend_state(device->wined3d_device, NULL, &factor);
-        }
-        else
-            wined3d_device_set_render_state(device->wined3d_device, state, value);
-    }
     if (state == D3DRS_POINTSIZE && value == D3D9_RESZ_CODE)
         resolve_depth_buffer(device);
     wined3d_mutex_unlock();




More information about the wine-cvs mailing list