[PATCH 4/6] wined3d: Avoid some invalidation when texture states are set redundantly.