1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:18:12 +00:00

LibGfx: Fix PNG decoder handling of 16-bit RGB images

This commit is contained in:
Paul Roukema 2020-06-13 12:51:54 -04:00 committed by Andreas Kling
parent 1e15fa30e4
commit 76553f9f06

View file

@ -387,7 +387,7 @@ NEVER_INLINE FLATTEN static void unfilter(PNGLoadingContext& context)
if (context.bit_depth == 8) {
unpack_triplets_without_alpha<u8>(context);
} else if (context.bit_depth == 16) {
unpack_grayscale_without_alpha<u16>(context);
unpack_triplets_without_alpha<u16>(context);
} else {
ASSERT_NOT_REACHED();
}