Henri Verbeet : wined3d: Properly check if an attribute is used in state_normalize().