Browse Source

Fix base unpremultiply benchmark

js/color-alpha-handling
James Jackson-South 5 years ago
parent
commit
05b66da9f7
  1. 2
      tests/ImageSharp.Benchmarks/Color/Bulk/UnPremultiplyVector4.cs

2
tests/ImageSharp.Benchmarks/Color/Bulk/UnPremultiplyVector4.cs

@ -36,7 +36,7 @@ namespace SixLabors.ImageSharp.Benchmarks.ColorSpaces.Bulk
private static void UnPremultiply(ref Vector4 source)
{
float w = source.W;
source *= w;
source /= w;
source.W = w;
}

Loading…
Cancel
Save