From 0818d9f37961588551bd9a1be85bf20a48327b5e Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 31 Oct 2019 12:37:56 +0000 Subject: [PATCH] Don't lose SRGB flag when remapping textures for proxying --- renderdoc/core/replay_proxy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/renderdoc/core/replay_proxy.cpp b/renderdoc/core/replay_proxy.cpp index 749f8f27e..bccc3695e 100644 --- a/renderdoc/core/replay_proxy.cpp +++ b/renderdoc/core/replay_proxy.cpp @@ -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;