mirror of https://github.com/GNOME/gimp.git
app: propagate babl space in pointfilter base class
This commit is contained in:
parent
ae2c30ad0e
commit
df4f9e0d9b
|
@ -117,12 +117,14 @@ static void
|
||||||
gimp_operation_point_filter_prepare (GeglOperation *operation)
|
gimp_operation_point_filter_prepare (GeglOperation *operation)
|
||||||
{
|
{
|
||||||
GimpOperationPointFilter *self = GIMP_OPERATION_POINT_FILTER (operation);
|
GimpOperationPointFilter *self = GIMP_OPERATION_POINT_FILTER (operation);
|
||||||
|
const Babl *space = gegl_operation_get_source_space (operation,
|
||||||
|
"input");
|
||||||
const Babl *format;
|
const Babl *format;
|
||||||
|
|
||||||
if (self->linear)
|
if (self->linear)
|
||||||
format = babl_format ("RGBA float");
|
format = babl_format_with_space ("RGBA float", space);
|
||||||
else
|
else
|
||||||
format = babl_format ("R'G'B'A float");
|
format = babl_format_with_space ("R'G'B'A float", space);
|
||||||
|
|
||||||
gegl_operation_set_format (operation, "input", format);
|
gegl_operation_set_format (operation, "input", format);
|
||||||
gegl_operation_set_format (operation, "output", format);
|
gegl_operation_set_format (operation, "output", format);
|
||||||
|
|
Loading…
Reference in New Issue