[gegl] color-exchange: propagate space
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] color-exchange: propagate space
- Date: Fri, 6 Jul 2018 09:15:33 +0000 (UTC)
commit bfc3c22694a7a6d980eb365c886baed4b682baca
Author: Øyvind Kolås <pippin gimp org>
Date: Fri Jul 6 11:14:54 2018 +0200
color-exchange: propagate space
operations/common-gpl3+/color-exchange.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/common-gpl3+/color-exchange.c b/operations/common-gpl3+/color-exchange.c
index 85f50cf4b..91255cd8b 100644
--- a/operations/common-gpl3+/color-exchange.c
+++ b/operations/common-gpl3+/color-exchange.c
@@ -65,8 +65,9 @@ static void
prepare (GeglOperation *operation)
{
GeglProperties *o = GEGL_PROPERTIES (operation);
- const Babl *format = babl_format ("R'G'B'A float");
- const Babl *colorformat = babl_format ("R'G'B' float");
+ const Babl *space = gegl_operation_get_source_space (operation, "input");
+ const Babl *format = babl_format_with_space ("R'G'B'A float", space);
+ const Babl *colorformat = babl_format_with_space ("R'G'B' float", space);
CeParamsType *params;
gfloat color_in[3];
gfloat color_out[3];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]