LUT: make LUTs default to on
authorØyvind Kolås <pippin@gimp.org>
Thu, 23 Mar 2023 12:59:49 +0000 (13:59 +0100)
committerØyvind Kolås <pippin@gimp.org>
Thu, 23 Mar 2023 12:59:49 +0000 (13:59 +0100)
The BABL_LUT environment variable still controls whether it is enabled, to
turn off the LUT usage set BABL_LUT=0.

babl/babl-fish-path.c

index addb2f138f74f05e3c703b929e21519231b17ab5..c01cc2d7c0cca6c51abaf4d1230db1b48fb0d356 100644 (file)
@@ -644,9 +644,9 @@ _babl_legal_error (void)
 
   env = getenv ("BABL_LUT");
   if (env && env[0] != '\0')
-    enable_lut = 1;
+    enable_lut = atoi(getenv("BABL_LUT"));
   else
-    enable_lut = 0;
+    enable_lut = 1;
 
   return error;
 }