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.
This commit is contained in:
Nathan Vegdahl 2022-04-23 15:26:53 -07:00
parent beaefbf62f
commit 252c2541d6

View File

@ -230,7 +230,7 @@ fn write_rgb_exr<P: AsRef<Path>>(
LayerAttributes::named(""),
Encoding::SMALL_LOSSLESS,
SpecificChannels::rgb(|co: exr::math::Vec2<usize>| {
let rgb = pixels[co.1 * res_y + co.0];
let rgb = pixels[co.1 * res_x + co.0];
(rgb[0], rgb[1], rgb[2])
}),
))