mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-17 09:39:19 +00:00
Need to downcast from BGRA formats
This commit is contained in:
1 parent
8f7ca2974c
commit
8538e045cb
1 file changed
+1
-1
@@ -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