[PATCH 1/5] wined3d: Surfaces always have a container in surface_invalidate_location().

Henri Verbeet hverbeet at codeweavers.com
Wed Nov 20 03:04:29 CST 2013


---
 dlls/wined3d/surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 60348ab..320a79b 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -5215,7 +5215,7 @@ void surface_invalidate_location(struct wined3d_surface *surface, DWORD location
 {
     TRACE("surface %p, location %s.\n", surface, debug_surflocation(location & SFLAG_LOCATIONS));
 
-    if ((location & (SFLAG_INTEXTURE | SFLAG_INSRGBTEX)) && surface->container)
+    if (location & (SFLAG_INTEXTURE | SFLAG_INSRGBTEX))
         wined3d_texture_set_dirty(surface->container);
     surface->flags &= ~(location & SFLAG_LOCATIONS);
 
-- 
1.7.10.4




More information about the wine-patches mailing list