app: clean up Luminance blend function

... in particular, don't use a static fish.
This commit is contained in:
Ell 2019-06-10 10:53:00 -04:00
parent 65f85e7078
commit 1dd3d7e91e
1 changed files with 7 additions and 8 deletions

View File

@ -911,15 +911,14 @@ gimp_operation_layer_mode_blend_luminance (GeglOperation *operation,
gfloat *comp,
gint samples)
{
static const Babl *fish;
gfloat *scratch;
gfloat *in_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 *fish;
gfloat *scratch;
gfloat *in_Y;
gfloat *layer_Y;
const Babl *space = gegl_operation_get_source_space (operation, "input");
fish = babl_fish (babl_format_with_space ("RGBA float", space),
babl_format_with_space ("Y float", space));
fish = babl_fish (babl_format_with_space ("RGBA float", space),
babl_format_with_space ("Y float", space));
scratch = gegl_scratch_new (gfloat, 2 * samples);