=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: Use the map binding for RGB<->sRGB loads.

Alexandre Julliard julliard at winehq.org
Fri Jan 10 13:22:47 CST 2014


Module: wine
Branch: master
Commit: 1b561e815ef3eec2f6b131d11fd96d8f5f73510a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1b561e815ef3eec2f6b131d11fd96d8f5f73510a

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Fri Jan 10 12:40:43 2014 +0100

wined3d: Use the map binding for RGB<->sRGB loads.

---

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

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 45c3663..ee07e19 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -5003,20 +5003,20 @@ static HRESULT surface_load_texture(struct wined3d_surface *surface,
 
     if (srgb)
     {
-        if ((surface->flags & (SFLAG_INTEXTURE | SFLAG_INSYSMEM)) == SFLAG_INTEXTURE)
+        if ((surface->flags & (SFLAG_INTEXTURE | surface->map_binding)) == SFLAG_INTEXTURE)
         {
             /* Performance warning... */
             FIXME("Downloading RGB surface %p to reload it as sRGB.\n", surface);
-            surface_load_location(surface, SFLAG_INSYSMEM);
+            surface_load_location(surface, surface->map_binding);
         }
     }
     else
     {
-        if ((surface->flags & (SFLAG_INSRGBTEX | SFLAG_INSYSMEM)) == SFLAG_INSRGBTEX)
+        if ((surface->flags & (SFLAG_INSRGBTEX | surface->map_binding)) == SFLAG_INSRGBTEX)
         {
             /* Performance warning... */
             FIXME("Downloading sRGB surface %p to reload it as RGB.\n", surface);
-            surface_load_location(surface, SFLAG_INSYSMEM);
+            surface_load_location(surface, surface->map_binding);
         }
     }
 




More information about the wine-cvs mailing list