Fixed BC7 encoder.

This commit is contained in:
Branimir Karadžić
2017-11-01 18:06:08 -07:00
parent 5baa2c36b8
commit 83093ef102
3 changed files with 63 additions and 48 deletions

View File

@@ -315,8 +315,10 @@ bimg::ImageContainer* convert(bx::AllocatorI* _allocator, const void* _inputData
BX_FREE(_allocator, rgbaDst);
}
else if (!bimg::isCompressed(input->m_format)
&& 8 != inputBlockInfo.rBits)
else if ( (!bimg::isCompressed(input->m_format) && 8 != inputBlockInfo.rBits)
|| outputFormat == bimg::TextureFormat::BC6H
|| outputFormat == bimg::TextureFormat::BC7
)
{
uint32_t size = bimg::imageGetSize(
NULL