wined3d: Properly check if an attribute is used in state_colormat().