mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-03 19:07:56 +00:00
Don't drop sRGB flag when getting texture data. Refs #2787
* This would cause incorrect data to be saved when saving from an SRGB texture to an SRGB format like PNG/JPG etc.
This commit is contained in:
@@ -2479,7 +2479,7 @@ void ReplayProxy::EnsureTexCached(ResourceId &texid, CompType &typeCast, const S
|
||||
}
|
||||
|
||||
if(proxyit->second.params.remap != RemapTexture::NoRemap)
|
||||
typeCast = BaseRemapType(typeCast);
|
||||
typeCast = BaseRemapType(proxyit->second.params.remap, typeCast);
|
||||
|
||||
// change texid to the proxy texture's ID for passing to our proxy renderer
|
||||
texid = proxyit->second.id;
|
||||
|
||||
Reference in New Issue
Block a user