Module: wine Branch: master Commit: 018a48493be0dfc785de968f11d2c27ae9df222e URL: http://source.winehq.org/git/wine.git/?a=commit;h=018a48493be0dfc785de968f11...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Dec 7 18:47:07 2010 +0100
wined3d: Remove a redundant SetDirty() call from IWineD3DSurfaceImpl_Map().
The surface_add_dirty_rect() call already does this.
---
dlls/wined3d/surface.c | 12 ------------ 1 files changed, 0 insertions(+), 12 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index f7f0679..91cc880 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -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); }