Fix typecast preserving sRGB on GL

This commit is contained in:
baldurk
2020-05-19 11:42:41 +01:00
parent 1478aeddde
commit b8e841274b
+2 -2
View File
@@ -2319,11 +2319,11 @@ void GLReplay::GetTextureData(ResourceId tex, const Subresource &sub,
else if(params.remap == RemapTexture::RGBA32)
remapFormat = eGL_RGBA32F;
CompType typeCast = params.typeCast;
CompType typeCast = BaseRemapType(params.typeCast);
if(typeCast == CompType::Typeless && IsSRGBFormat(intFormat))
typeCast = CompType::UNormSRGB;
remapFormat = GetViewCastedFormat(remapFormat, BaseRemapType(typeCast));
remapFormat = GetViewCastedFormat(remapFormat, typeCast);
if(intFormat != remapFormat)
{