resolved local state conflict
This commit is contained in:
1 parent
4db5cbbad2
commit
83e3f2e41b
8 files changed
+9
-9
No files matched your search
+1
-1
@@ -26,7 +26,7 @@ pub fn write_image(filename: &str, pixels: &[u8], width: u32, height: u32) {
|
||||
pub fn render(scene: &mut Scene) {
|
||||
scene.init();
|
||||
|
||||
// TODO: currently splits per vertical line, but could be more granular (per chunk)
|
||||
// TODO (low priority): currently splits per vertical line, but could be more granular (per chunk)
|
||||
let mut pixels = vec![0_u8; (scene.get_image_width() * scene.get_image_height() * 3) as usize];
|
||||
let scanlines: Vec<(usize, &mut [u8])> = pixels
|
||||
.chunks_mut(scene.get_image_width() as usize * 3)
|
||||
|
||||