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

Alexandre Julliard julliard at winehq.org
Wed Nov 20 13:38:55 CST 2013


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Nov 20 10:04:29 2013 +0100

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

---

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

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);
 




More information about the wine-cvs mailing list