From 252c2541d6a33188069a1bb970019c000af9e573 Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Sat, 23 Apr 2022 15:26:53 -0700 Subject: [PATCH] Fix stupid bug in test image export. This was correct the last time I exported the image (it was introduced in the refactor a while ago), and the bug was only in the export part, not the reading part. So all of the LUT extraction we've done has been correct, thank goodness. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 9e8f43a..8b23a8e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -230,7 +230,7 @@ fn write_rgb_exr>( LayerAttributes::named(""), Encoding::SMALL_LOSSLESS, SpecificChannels::rgb(|co: exr::math::Vec2| { - let rgb = pixels[co.1 * res_y + co.0]; + let rgb = pixels[co.1 * res_x + co.0]; (rgb[0], rgb[1], rgb[2]) }), ))