mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 14:15:42 +00:00
Fix typecast preserving sRGB on GL
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user