Henri Verbeet : wined3d: Use the rep instead of the apply function to determine if a state is used.