@@ -176,9 +176,9 @@ bimg::ImageContainer* convert(bx::AllocatorI* _allocator, const void* _inputData
bimg::imageDecodeToRgba32f(_allocator
, rgba
, mip.m_data
- , mip.m_width
- , mip.m_height
- , mip.m_width*mip.m_bpp/8
+ , dstMip.m_width
+ , dstMip.m_height
+ , dstMip.m_width*16
, mip.m_format
);