=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: Remove sRGB_decode handling from surface_load_location.

Alexandre Julliard julliard at winehq.org
Wed Oct 9 14:22:14 CDT 2013


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Wed Oct  9 12:37:59 2013 +0200

wined3d: Remove sRGB_decode handling from surface_load_location.

---

 dlls/wined3d/surface.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 860296b..daa26e2 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -5600,9 +5600,6 @@ HRESULT surface_load_location(struct wined3d_surface *surface, DWORD location, c
         }
     }
 
-    if (location == SFLAG_INSRGBTEX && gl_info->supported[EXT_TEXTURE_SRGB_DECODE])
-        location = SFLAG_INTEXTURE;
-
     if (surface->flags & location)
     {
         TRACE("Location already up to date.\n");
@@ -5663,12 +5660,6 @@ HRESULT surface_load_location(struct wined3d_surface *surface, DWORD location, c
             surface_evict_sysmem(surface);
     }
 
-    if (surface->flags & (SFLAG_INTEXTURE | SFLAG_INSRGBTEX)
-            && gl_info->supported[EXT_TEXTURE_SRGB_DECODE])
-    {
-        surface->flags |= (SFLAG_INTEXTURE | SFLAG_INSRGBTEX);
-    }
-
     return WINED3D_OK;
 }
 




More information about the wine-cvs mailing list