From f64566532424e9c1b9431cc08fd39aa8146398ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Thu, 19 Jan 2017 14:44:39 +0100 Subject: [PATCH] app: unconditionally set alpha in hardlight/softlight/overlay --- app/operations/layer-modes/gimpblendcomposite.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/operations/layer-modes/gimpblendcomposite.h b/app/operations/layer-modes/gimpblendcomposite.h index b36935466e..8f65955c69 100644 --- a/app/operations/layer-modes/gimpblendcomposite.h +++ b/app/operations/layer-modes/gimpblendcomposite.h @@ -660,9 +660,8 @@ blendfun_hardlight (const float *dest, out[c] = comp; } - - out[ALPHA] = src[ALPHA]; } + out[ALPHA] = src[ALPHA]; out += 4; src += 4; @@ -690,9 +689,8 @@ blendfun_softlight (const float *dest, out[c] = comp; } - - out[ALPHA] = src[ALPHA]; } + out[ALPHA] = src[ALPHA]; out += 4; src += 4; @@ -727,9 +725,8 @@ blendfun_overlay (const float *dest, out[c] = comp; } - - out[ALPHA] = src[ALPHA]; } + out[ALPHA] = src[ALPHA]; out += 4; src += 4;