[PATCH 2/8] wined3d: Use the map binding to reload surfaces on palette changes.

Stefan Dösinger stefan at codeweavers.com
Fri Jan 10 05:40:41 CST 2014


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

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index c3cf504..12bdb9d 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -755,12 +755,12 @@ static void surface_realize_palette(struct wined3d_surface *surface)
         }
         else
         {
-            if (!(surface->flags & SFLAG_INSYSMEM))
+            if (!(surface->flags & surface->map_binding))
             {
                 TRACE("Palette changed with surface that does not have an up to date system memory copy.\n");
-                surface_load_location(surface, SFLAG_INSYSMEM);
+                surface_load_location(surface, surface->map_binding);
             }
-            surface_invalidate_location(surface, ~SFLAG_INSYSMEM);
+            surface_invalidate_location(surface, ~surface->map_binding);
         }
     }
 
-- 
1.8.3.2




More information about the wine-patches mailing list