mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Need to downcast from BGRA formats
This commit is contained in:
@@ -669,7 +669,7 @@ bool ReplayRenderer::SaveTexture(const TextureSave &saveData, const char *path)
|
||||
// for DDS don't downcast, for non-HDR always downcast if we're not already RGBA8 unorm
|
||||
// for HDR&EXR we can convert from most regular types as well as 10.10.10.2 and 11.11.10
|
||||
if((sd.destType != eFileType_DDS && sd.destType != eFileType_HDR && sd.destType != eFileType_EXR &&
|
||||
(td.format.compByteWidth != 1 || td.format.compType != eCompType_UNorm)) ||
|
||||
(td.format.compByteWidth != 1 || td.format.compType != eCompType_UNorm || td.format.bgraOrder)) ||
|
||||
downcast || (sd.destType != eFileType_DDS && td.format.special &&
|
||||
td.format.specialFormat != eSpecial_R10G10B10A2 &&
|
||||
td.format.specialFormat != eSpecial_R11G11B10))
|
||||
|
||||
Reference in New Issue
Block a user