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]) }), ))