Don't lose SRGB flag when remapping textures for proxying

This commit is contained in:
baldurk
2019-11-13 10:04:31 +00:00
parent 5d32cf6b07
commit 0818d9f379
+2 -1
View File
@@ -2191,7 +2191,8 @@ void ReplayProxy::RemapProxyTextureIfNeeded(TextureDescription &tex, GetTextureD
case RemapTexture::RGBA8:
tex.format.compCount = 4;
tex.format.compByteWidth = 1;
tex.format.compType = CompType::UNorm;
if(tex.format.compType != CompType::UNormSRGB)
tex.format.compType = CompType::UNorm;
// Range adaptation is only needed when remapping a higher precision format down to RGBA8.
params.whitePoint = 1.0f;
break;