=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: Use the map binding to reload surfaces on color key changes.
Alexandre Julliard
julliard at winehq.org
Fri Jan 10 13:22:46 CST 2014
Module: wine
Branch: master
Commit: 5c1df19b16151dc9f0d3454c0a002c55652b1400
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5c1df19b16151dc9f0d3454c0a002c55652b1400
Author: Stefan Dösinger <stefan at 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);
More information about the wine-cvs
mailing list