Skip to content

Commit 3722997

Browse files
committed
Fix mistake when encoding uint pixel data: value from Rgb96.FromVector4 was not used
1 parent b15625e commit 3722997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageSharp/Formats/Exr/ExrEncoderCore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ private ulong[] EncodeUnsignedIntPixelData<TPixel>(
267267
for (int x = 0; x < width; x++)
268268
{
269269
Vector4 vector4 = pixelRowSpan[x].ToVector4();
270-
Rgb96.FromVector4(vector4);
270+
rgb = Rgb96.FromVector4(vector4);
271271

272272
redBuffer[x] = rgb.R;
273273
greenBuffer[x] = rgb.G;

0 commit comments

Comments
 (0)