Signed-off-by: Zebediah Figura z.figura12@gmail.com --- dlls/d3d8/device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c index a7a08b3f809..92b67b92740 100644 --- a/dlls/d3d8/device.c +++ b/dlls/d3d8/device.c @@ -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;