wined3d: Remove sRGB_decode handling from surface_load_location.
This commit is contained in:
parent
16f7c24296
commit
db852ff5b5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue