Zebediah Figura : d3d8: Stop setting the device state in d3d8_device_SetTextureStageState().

Alexandre Julliard julliard at winehq.org
Mon Feb 24 15:23:53 CST 2020


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Fri Feb 21 17:04:50 2020 -0600

d3d8: Stop setting the device state in d3d8_device_SetTextureStageState().

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/d3d8/device.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index 41384d84bc..5e18f64550 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -2306,17 +2306,9 @@ static HRESULT WINAPI d3d8_device_SetTextureStageState(IDirect3DDevice8 *iface,
 
     wined3d_mutex_lock();
     if (l->sampler_state)
-    {
         wined3d_stateblock_set_sampler_state(device->update_state, stage, l->u.sampler_state, value);
-        if (!device->recording)
-            wined3d_device_set_sampler_state(device->wined3d_device, stage, l->u.sampler_state, value);
-    }
     else
-    {
         wined3d_stateblock_set_texture_stage_state(device->update_state, stage, l->u.texture_state, value);
-        if (!device->recording)
-            wined3d_device_set_texture_stage_state(device->wined3d_device, stage, l->u.texture_state, value);
-    }
     wined3d_mutex_unlock();
 
     return D3D_OK;




More information about the wine-cvs mailing list