[PATCH 3/4] wined3d: Remove a redundant SetDirty() call from IWineD3DSurfaceImpl_Map().
Henri Verbeet
hverbeet at codeweavers.com
Tue Dec 7 11:47:07 CST 2010
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);
}
--
1.7.2.2
More information about the wine-patches
mailing list