Matteo Bruni (@Mystral) commented about dlls/d3dx10_43/texture.c:
if (is_block_compressed(img_info.Format)) {
stride *= 4; if (FAILED(hr = IWICBitmapFrameDecode_QueryInterface(frame, &IID_IWICDdsFrameDecode, (void **)&dds_frame))) goto end;
if (FAILED(hr = IWICDdsFrameDecode_CopyBlocks(dds_frame, NULL, stride * 4, frame_size, buffer)))
} elseif (FAILED(hr = IWICDdsFrameDecode_CopyBlocks(dds_frame, NULL, stride, frame_size, buffer))) goto end;
Two things about this commit. This could use a test demonstrating that the old behavior is wrong and that this patch makes it right. Also, this should probably be on a separate MR.