Module: wine Branch: master Commit: 5479ccea20ef8d03f7d1b29482cf2f63bd6e94fb URL: http://source.winehq.org/git/wine.git/?a=commit;h=5479ccea20ef8d03f7d1b29482...
Author: Stefan Dösinger stefan@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); } }