mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-21 14:06:45 +00:00
Don't lose SRGB flag when remapping textures for proxying
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user