Commit 0e9bda4f authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ddraw: Handle stateblocks in d3d_device7_LightEnable().

parent 21d331e3
...@@ -6431,7 +6431,9 @@ static HRESULT d3d_device7_LightEnable(IDirect3DDevice7 *iface, DWORD light_idx, ...@@ -6431,7 +6431,9 @@ static HRESULT d3d_device7_LightEnable(IDirect3DDevice7 *iface, DWORD light_idx,
TRACE("iface %p, light_idx %u, enabled %#x.\n", iface, light_idx, enabled); TRACE("iface %p, light_idx %u, enabled %#x.\n", iface, light_idx, enabled);
wined3d_mutex_lock(); wined3d_mutex_lock();
hr = wined3d_device_set_light_enable(device->wined3d_device, light_idx, enabled); 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(); wined3d_mutex_unlock();
return hr_ddraw_from_wined3d(hr); return hr_ddraw_from_wined3d(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