LUT: avoid zeroing alpha in 1bpp to 4bpp LUT
authorØyvind Kolås <pippin@gimp.org>
Tue, 2 May 2023 20:49:58 +0000 (22:49 +0200)
committerØyvind Kolås <pippin@gimp.org>
Tue, 2 May 2023 21:06:17 +0000 (23:06 +0200)
Fixing issue #92.

babl/babl-fish-path.c

index ef195f8e59c74f28e36ee245b15530a93867df0d..afb3a797e50cb96b99de949e404b71fc9f66b715 100644 (file)
@@ -513,8 +513,6 @@ static inline int babl_fish_lut_process_maybe (const Babl *babl,
                                   temp_lut, 1,
                                   lut, 4,
                                   256);
-         for (int o = 0; o < 256; o++)
-           lut[o] = lut[o] & 0x00ffffff;
          free (temp_lut);
        }