Commit 1edad8a5 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

d3d9: Handle stateblocks in d3d9_device_LightEnable().

parent 7daea10c
...@@ -2222,7 +2222,9 @@ static HRESULT WINAPI d3d9_device_LightEnable(IDirect3DDevice9Ex *iface, DWORD i ...@@ -2222,7 +2222,9 @@ static HRESULT WINAPI d3d9_device_LightEnable(IDirect3DDevice9Ex *iface, DWORD i
TRACE("iface %p, index %u, enable %#x.\n", iface, index, enable); TRACE("iface %p, index %u, enable %#x.\n", iface, index, enable);
wined3d_mutex_lock(); wined3d_mutex_lock();
hr = wined3d_device_set_light_enable(device->wined3d_device, index, enable); hr = wined3d_stateblock_set_light_enable(device->update_state, index, enable);
if (SUCCEEDED(hr) && !device->recording)
hr = wined3d_device_set_light_enable(device->wined3d_device, index, enable);
wined3d_mutex_unlock(); wined3d_mutex_unlock();
return hr; return 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