Image: Fix reading of JPEG files

This commit is contained in:
Stenzek 2024-03-15 21:20:06 +10:00
parent 43eb6e20fa
commit 8b2b4ce8d9
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -490,8 +490,9 @@ static bool WrapJPEGDecompress(RGBA8Image* image, T setup_func)
u32* dst_ptr = image->GetRowPixels(y);
for (u32 x = 0; x < info.image_width; x++)
{
*(dst_ptr) =
*(dst_ptr++) =
(ZeroExtend32(src_ptr[0]) | (ZeroExtend32(src_ptr[1]) << 8) | (ZeroExtend32(src_ptr[2]) << 16) | 0xFF000000u);
src_ptr += 3;
}
}