Commit 018a4849 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

The surface_add_dirty_rect() call already does this.
parent 5fc53941
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment