[gegl] opacity: follow API changes in babl



commit dec8fcd6338aed0cfb15db91c5a49aea41ce249c
Author: Øyvind Kolås <pippin gimp org>
Date:   Mon Jul 22 15:33:22 2019 +0200

    opacity: follow API changes in babl

 operations/common/opacity.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/opacity.c b/operations/common/opacity.c
index 7640cc3d3..c89e6c491 100644
--- a/operations/common/opacity.c
+++ b/operations/common/opacity.c
@@ -169,7 +169,7 @@ process (GeglOperation       *op,
   const Babl *format = gegl_operation_get_format (op, "output");
   int components = babl_format_get_n_components (format);
 
-  if (babl_get_model_flags (format) & BABL_MODEL_FLAG_PREMULTIPLIED)
+  if (babl_get_model_flags (format) & BABL_MODEL_FLAG_ASSOCIATED)
     process_premultiplied_float (op, in_buf, aux_buf, out_buf, samples, roi, level, components);
   else
     process_with_alpha_float (op, in_buf, aux_buf, out_buf, samples, roi, level, components);
@@ -207,7 +207,7 @@ cl_process (GeglOperation       *op,
   fmt = gegl_operation_get_format(op, "input");
   value = GEGL_PROPERTIES (op)->value;
 
-  kernel = ((babl_get_model_flags(fmt) & BABL_MODEL_FLAG_PREMULTIPLIED) == 0)? 1 : 0;
+  kernel = ((babl_get_model_flags(fmt) & BABL_MODEL_FLAG_ASSOCIATED) == 0)? 1 : 0;
 
   cl_err = gegl_clSetKernelArg(cl_data->kernel[kernel], 0, sizeof(cl_mem),   (void*)&in_tex);
   CL_CHECK;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]