wined3d: Pass a wined3d_state structure to record_lights().