[gegl] remap: propagate BablSpace



commit 6d827da09abd8d572d2eb344859a02d4f4298fd4
Author: Øyvind Kolås <pippin gimp org>
Date:   Thu Jul 5 22:03:33 2018 +0200

    remap: propagate BablSpace

 operations/common/remap.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/operations/common/remap.c b/operations/common/remap.c
index c37a84bfe..42f1d93bd 100644
--- a/operations/common/remap.c
+++ b/operations/common/remap.c
@@ -34,7 +34,8 @@
 
 static void prepare (GeglOperation *operation)
 {
-  const Babl *format = babl_format ("RGBA float");
+  const Babl *space = gegl_operation_get_source_space (operation, "input");
+  const Babl *format = babl_format_with_space ("RGBA float", space);
 
   gegl_operation_set_format (operation, "input",  format);
   gegl_operation_set_format (operation, "aux",    format);


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