wined3d: Remove a redundant SetDirty() call from IWineD3DSurfaceImpl_Map().

The surface_add_dirty_rect() call already does this.
This commit is contained in:
Henri Verbeet 2010-12-07 18:47:07 +01:00 committed by Alexandre Julliard
parent 5fc53941ef
commit 018a48493b
1 changed files with 0 additions and 12 deletions

View File

@ -1724,20 +1724,8 @@ lock_end:
}
if (!(flags & (WINED3DLOCK_NO_DIRTY_UPDATE | WINED3DLOCK_READONLY)))
{
surface_add_dirty_rect(This, pRect);
if (This->container.type == WINED3D_CONTAINER_TEXTURE)
{
TRACE("Making container dirty.\n");
IWineD3DBaseTexture_SetDirty((IWineD3DBaseTexture *)This->container.u.texture, TRUE);
}
else
{
TRACE("Surface is standalone, no need to dirty the container\n");
}
}
return IWineD3DBaseSurfaceImpl_Map(iface, pLockedRect, pRect, flags);
}