From 6892e7c13a4da61ff49f38b5e43d929559a694d4 Mon Sep 17 00:00:00 2001 From: sedyh Date: Sun, 5 Feb 2023 20:42:47 +0300 Subject: [PATCH] Fixed BlendDestinationOut behaviour #2560 --- blend.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blend.go b/blend.go index 5d3df19dfbdc..e54d81061f7d 100644 --- a/blend.go +++ b/blend.go @@ -314,10 +314,10 @@ var ( // c_out = c_dst × (1 - α_src) // α_out = α_dst × (1 - α_src) BlendDestinationOut = Blend{ - BlendFactorSourceRGB: BlendFactorOneMinusDestinationAlpha, - BlendFactorSourceAlpha: BlendFactorOneMinusDestinationAlpha, - BlendFactorDestinationRGB: BlendFactorZero, - BlendFactorDestinationAlpha: BlendFactorZero, + BlendFactorSourceRGB: BlendFactorZero, + BlendFactorSourceAlpha: BlendFactorZero, + BlendFactorDestinationRGB: BlendFactorOneMinusSourceAlpha, + BlendFactorDestinationAlpha: BlendFactorOneMinusSourceAlpha, BlendOperationRGB: BlendOperationAdd, BlendOperationAlpha: BlendOperationAdd, }