Browse Source

Fix check for Sse2.IsSupported instead of just Sse.IsSupported

pull/1552/head
Brian Popow 5 years ago
parent
commit
47946a283a
  1. 4
      src/ImageSharp/Formats/WebP/Lossless/LosslessUtils.cs

4
src/ImageSharp/Formats/WebP/Lossless/LosslessUtils.cs

@ -147,7 +147,7 @@ namespace SixLabors.ImageSharp.Formats.Experimental.Webp.Lossless
}
}
}
else if (Sse.IsSupported)
else if (Sse2.IsSupported)
{
var mask = SimdUtils.Shuffle.MmShuffle(2, 2, 0, 0);
int numPixels = pixelData.Length;
@ -239,7 +239,7 @@ namespace SixLabors.ImageSharp.Formats.Experimental.Webp.Lossless
}
}
}
else if (Sse.IsSupported)
else if (Sse2.IsSupported)
{
var mask = SimdUtils.Shuffle.MmShuffle(2, 2, 0, 0);
int numPixels = pixelData.Length;

Loading…
Cancel
Save