[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    [PATCH 6/6] ddraw: Stop setting the device state in d3d_device7_SetLight() and d3d_device7_LightEnab
From:       Zebediah Figura <z.figura12 () gmail ! com>
Date:       2020-02-28 20:18:46
Message-ID: 20200228201846.252667-6-z.figura12 () gmail ! com
[Download RAW message or body]

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
---
 dlls/ddraw/device.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c
index 56debb7175..39626157a5 100644
--- a/dlls/ddraw/device.c
+++ b/dlls/ddraw/device.c
@@ -5539,8 +5539,6 @@ static HRESULT d3d_device7_SetLight(IDirect3DDevice7 *iface, \
DWORD light_idx, D3  wined3d_mutex_lock();
     /* Note: D3DLIGHT7 is compatible with struct wined3d_light. */
     hr = wined3d_stateblock_set_light(device->update_state, light_idx, (const struct \
                wined3d_light *)light);
-    if (SUCCEEDED(hr) && !device->recording)
-        hr = wined3d_device_set_light(device->wined3d_device, light_idx, (const \
struct wined3d_light *)light);  wined3d_mutex_unlock();
 
     return hr_ddraw_from_wined3d(hr);
@@ -6417,8 +6415,6 @@ static HRESULT d3d_device7_LightEnable(IDirect3DDevice7 *iface, \
DWORD light_idx,  
     wined3d_mutex_lock();
     hr = wined3d_stateblock_set_light_enable(device->update_state, light_idx, \
                enabled);
-    if (SUCCEEDED(hr) && !device->recording)
-        hr = wined3d_device_set_light_enable(device->wined3d_device, light_idx, \
enabled);  wined3d_mutex_unlock();
 
     return hr_ddraw_from_wined3d(hr);
-- 
2.25.0


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic