Commit 21d331e3 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

d3d8: Handle stateblocks in d3d8_device_LightEnable().

parent 1edad8a5
......@@ -1781,7 +1781,9 @@ static HRESULT WINAPI d3d8_device_LightEnable(IDirect3DDevice8 *iface, DWORD ind
TRACE("iface %p, index %u, enable %#x.\n", iface, index, enable);
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();
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