Browse Source

Fix for issue #2117

pull/2230/head
Brian Popow 3 years ago
parent
commit
353f2e2bd9
  1. 4
      src/ImageSharp/PixelFormats/PixelImplementations/Bgra32.cs

4
src/ImageSharp/PixelFormats/PixelImplementations/Bgra32.cs

@ -149,7 +149,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <inheritdoc/>
[MethodImpl(InliningOptions.ShortMethod)]
public void FromVector4(Vector4 vector) => this.Pack(ref vector);
public void FromVector4(Vector4 vector) => this.Pack(vector);
/// <inheritdoc/>
[MethodImpl(InliningOptions.ShortMethod)]
@ -302,7 +302,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// </summary>
/// <param name="vector">The vector containing the values to pack.</param>
[MethodImpl(InliningOptions.ShortMethod)]
private void Pack(ref Vector4 vector)
private void Pack(Vector4 vector)
{
vector *= MaxBytes;
vector += Half;

Loading…
Cancel
Save