From 353f2e2bd9200c461cbe4cba32bf3cfbe0d4d8f1 Mon Sep 17 00:00:00 2001 From: Brian Popow Date: Thu, 15 Sep 2022 19:19:41 +0200 Subject: [PATCH] Fix for issue #2117 --- src/ImageSharp/PixelFormats/PixelImplementations/Bgra32.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ImageSharp/PixelFormats/PixelImplementations/Bgra32.cs b/src/ImageSharp/PixelFormats/PixelImplementations/Bgra32.cs index b8e0e4add..70b6ddd69 100644 --- a/src/ImageSharp/PixelFormats/PixelImplementations/Bgra32.cs +++ b/src/ImageSharp/PixelFormats/PixelImplementations/Bgra32.cs @@ -149,7 +149,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// [MethodImpl(InliningOptions.ShortMethod)] - public void FromVector4(Vector4 vector) => this.Pack(ref vector); + public void FromVector4(Vector4 vector) => this.Pack(vector); /// [MethodImpl(InliningOptions.ShortMethod)] @@ -302,7 +302,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// The vector containing the values to pack. [MethodImpl(InliningOptions.ShortMethod)] - private void Pack(ref Vector4 vector) + private void Pack(Vector4 vector) { vector *= MaxBytes; vector += Half;