Henri Verbeet : wined3d: Pass a wined3d_state structure to apply_lights().