Need to downcast from BGRA formats

This commit is contained in:
baldurk
2016-06-08 15:29:01 -07:00
parent 8f7ca2974c
commit 8538e045cb
+1 -1
View File
@@ -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))