Always downcast for special formats

* This would previously have allowed RGB10A2 data to be written literally, as it
  was otherwise detected as RGBA8.
This commit is contained in:
baldurk
2022-12-15 15:17:54 +00:00
parent e33f1c1329
commit 843797846b
+1 -1
View File
@@ -742,7 +742,7 @@ ResultDetails ReplayController::SaveTexture(const TextureSave &saveData, const r
// for non-HDR always downcast if we're not already RGBA8 unorm
if(sd.destType != FileType::DDS && sd.destType != FileType::HDR && sd.destType != FileType::EXR &&
(td.format.compByteWidth != 1 || td.format.compCount != 4 ||
td.format.compType != CompType::UNorm || td.format.BGRAOrder()))
td.format.compType != CompType::UNorm || td.format.BGRAOrder() || td.format.Special()))
downcast = true;
// for HDR & EXR we can convert from most regular types as well as 10.10.10.2 and 11.11.10