[PATCH 2/6] wined3d: Avoid some invalidation when the vertex declaration is set redundantly.