From 5eaeb3ede00a1cf5a8421e118c087ec0ce2cc71e Mon Sep 17 00:00:00 2001 From: Imbris Date: Sat, 18 May 2019 19:09:23 -0400 Subject: [PATCH] fix screen shot flipping Former-commit-id: 47ed01cd5f91445d1367121d939c01876008f643 --- voxygen/src/render/renderer.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/voxygen/src/render/renderer.rs b/voxygen/src/render/renderer.rs index 02b4a178c8..fbd0397968 100644 --- a/voxygen/src/render/renderer.rs +++ b/voxygen/src/render/renderer.rs @@ -343,9 +343,10 @@ impl Renderer { .factory .read_mapping(&download) .map_err(|err| RenderError::MappingError(err))? - .iter() + .chunks_exact(width as usize) .rev() .flatten() + .flatten() .map(|&e| e) .collect::>(); Ok(image::DynamicImage::ImageRgba8(