Module: wine Branch: master Commit: 5c1df19b16151dc9f0d3454c0a002c55652b1400 URL: http://source.winehq.org/git/wine.git/?a=commit;h=5c1df19b16151dc9f0d3454c0a...
Author: Stefan Dösinger stefan@codeweavers.com Date: Fri Jan 10 12:40:42 2014 +0100
wined3d: Use the map binding to reload surfaces on color key changes.
---
dlls/wined3d/surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 9cc8a71..45c3663 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -2308,8 +2308,8 @@ void surface_load(struct wined3d_surface *surface, BOOL srgb) /* To perform the color key conversion we need a sysmem copy of * the surface. Make sure we have it. */
- surface_load_location(surface, SFLAG_INSYSMEM); - surface_invalidate_location(surface, ~SFLAG_INSYSMEM); + surface_load_location(surface, surface->map_binding); + surface_invalidate_location(surface, ~surface->map_binding); /* Switching color keying on / off may change the internal format. */ if (ck_changed) surface_force_reload(surface);