Henri Verbeet : wined3d: Surfaces always have a container in surface_add_dirty_rect().

Alexandre Julliard julliard at winehq.org
Tue Nov 19 13:28:35 CST 2013


Module: wine
Branch: master
Commit: aa48321ccd5af82b074764524531d4db140928d4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=aa48321ccd5af82b074764524531d4db140928d4

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Nov 19 10:28:46 2013 +0100

wined3d: Surfaces always have a container in surface_add_dirty_rect().

---

 dlls/wined3d/surface.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 7718186..2999e62 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2421,12 +2421,7 @@ void surface_add_dirty_rect(struct wined3d_surface *surface, const struct wined3
         surface->dirtyRect.bottom = surface->resource.height;
     }
 
-    /* if the container is a texture then mark it dirty. */
-    if (surface->container)
-    {
-        TRACE("Passing to container.\n");
-        wined3d_texture_set_dirty(surface->container);
-    }
+    wined3d_texture_set_dirty(surface->container);
 }
 
 HRESULT surface_load(struct wined3d_surface *surface, BOOL srgb)




More information about the wine-cvs mailing list