mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-25 07:56:33 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user