From 12779099984c1c94f459e08c547623c0a2d4a7b3 Mon Sep 17 00:00:00 2001 From: Artem Sedykh Date: Sun, 5 Feb 2023 21:28:58 +0300 Subject: [PATCH] ebiten: bug fix: wrong BlendDestinationOut behaviour (#2561) Closes #2560 --- blend.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blend.go b/blend.go index 5d3df19df..e54d81061 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, }