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:
baldurk
2022-12-15 15:20:11 +00:00
parent 0a0fe7b021
commit 900ff975b3
7 changed files with 24 additions and 27 deletions
+1 -1
View File
@@ -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;