wined3d: Remove a redundant SetDirty() call from IWineD3DSurfaceImpl_Map().
The surface_add_dirty_rect() call already does this.
This commit is contained in:
parent
5fc53941ef
commit
018a48493b
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue