Commit db852ff5 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Remove sRGB_decode handling from surface_load_location.

parent 16f7c242
...@@ -5600,9 +5600,6 @@ HRESULT surface_load_location(struct wined3d_surface *surface, DWORD location, 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) if (surface->flags & location)
{ {
TRACE("Location already up to date.\n"); TRACE("Location already up to date.\n");
...@@ -5663,12 +5660,6 @@ HRESULT surface_load_location(struct wined3d_surface *surface, DWORD location, c ...@@ -5663,12 +5660,6 @@ HRESULT surface_load_location(struct wined3d_surface *surface, DWORD location, c
surface_evict_sysmem(surface); 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; return WINED3D_OK;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment