From 908bae371e6f4b3a553bbf4e4cb6c719fa04f2a8 Mon Sep 17 00:00:00 2001 From: Stefan Nikolei Date: Sat, 25 Feb 2023 21:11:32 +0100 Subject: [PATCH] Fix multiply --- src/ImageSharp/Primitives/ColorMatrix.Impl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp/Primitives/ColorMatrix.Impl.cs b/src/ImageSharp/Primitives/ColorMatrix.Impl.cs index d71f39273..75bda227e 100644 --- a/src/ImageSharp/Primitives/ColorMatrix.Impl.cs +++ b/src/ImageSharp/Primitives/ColorMatrix.Impl.cs @@ -133,7 +133,7 @@ public partial struct ColorMatrix result.V = right.X * left.V.X; result.V += right.Y * left.V.Y; result.V += right.Z * left.V.Z; - result.V += right.W * left.V.W; + result.V += (right.W * left.V.W) + right.W; return result; }