app: make compositing of grain extract blend mode consistent

This commit is contained in:
Øyvind Kolås
2017-01-13 14:26:05 +01:00
parent 954030fab6
commit 75173b97d9

View File

@ -96,7 +96,8 @@ gimp_operation_grain_extract_process_pixels (gfloat *in,
{
gfloat comp_alpha;
comp_alpha = MIN (in[ALPHA], layer[ALPHA]) * opacity;
comp_alpha = layer[ALPHA] * opacity;
if (has_mask)
comp_alpha *= *mask;