mirror of https://github.com/GNOME/gimp.git
app: clean up Luminance blend function
... in particular, don't use a static fish.
This commit is contained in:
parent
65f85e7078
commit
1dd3d7e91e
|
@ -911,11 +911,10 @@ gimp_operation_layer_mode_blend_luminance (GeglOperation *operation,
|
||||||
gfloat *comp,
|
gfloat *comp,
|
||||||
gint samples)
|
gint samples)
|
||||||
{
|
{
|
||||||
static const Babl *fish;
|
const Babl *fish;
|
||||||
gfloat *scratch;
|
gfloat *scratch;
|
||||||
gfloat *in_Y;
|
gfloat *in_Y;
|
||||||
gfloat *layer_Y;
|
gfloat *layer_Y;
|
||||||
const Babl *format = gegl_operation_get_source_format (operation, "input");
|
|
||||||
const Babl *space = gegl_operation_get_source_space (operation, "input");
|
const Babl *space = gegl_operation_get_source_space (operation, "input");
|
||||||
|
|
||||||
fish = babl_fish (babl_format_with_space ("RGBA float", space),
|
fish = babl_fish (babl_format_with_space ("RGBA float", space),
|
||||||
|
|
Loading…
Reference in New Issue