=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: Use the map binding to reload surfaces on palette changes.
Alexandre Julliard
julliard at winehq.org
Fri Jan 10 13:22:46 CST 2014
Module: wine
Branch: master
Commit: 5479ccea20ef8d03f7d1b29482cf2f63bd6e94fb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5479ccea20ef8d03f7d1b29482cf2f63bd6e94fb
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Fri Jan 10 12:40:41 2014 +0100
wined3d: Use the map binding to reload surfaces on palette changes.
---
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 b6dcb95..9cc8a71 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);
}
}
More information about the wine-cvs
mailing list