babl: switch behavior of reference precision enum
authorØyvind Kolås <pippin@gimp.org>
Thu, 30 Aug 2018 11:21:02 +0000 (13:21 +0200)
committerØyvind Kolås <pippin@gimp.org>
Thu, 30 Aug 2018 12:27:41 +0000 (14:27 +0200)
It is now called BABL_REFERENCE_NOFLOAT and if set babl is not using the
generic mechanism to synthesize many possible float<->float conversions.

babl/babl-fish-reference.c

index 0dd28241da168135968b00189db863d6dd5d731a..35b9d95d3708547029dd387afc90d8e100367a9f 100644 (file)
@@ -714,7 +714,7 @@ babl_fish_reference_process (const Babl *babl,
 
   static int allow_float_reference = -1;
   if (allow_float_reference == -1)
-    allow_float_reference = getenv ("BABL_REFERENCE_FLOAT") ? 1 : 0;
+    allow_float_reference = getenv ("BABL_REFERENCE_NOFLOAT") ? 0 : 1;
 
   if ((BABL (babl->fish.source)->format.model ==
        BABL (babl->fish.destination)->format.model) &&