wined3d: Simplify the "transformed" check in state_lighting().