stupid stupid stupid. buffer write bug

This commit is contained in:
2019-07-02 18:07:52 -07:00
parent e7d4d6a8e2
commit e597e8ef1b
2 changed files with 9 additions and 10 deletions

View File

@@ -48,6 +48,7 @@ mod input;
mod util;
fn main() {
// Load up the input image, determine some details
let mut img = image::open("resources/images/test2.png").unwrap();
let xy = img.dimensions();
@@ -175,9 +176,9 @@ fn main() {
img.put_pixel(x, y, image::Rgba([r, g, b, a]))
}
}
}// Currently bringing all this start shit outta scope to see if it stops my gpu from screaming
}
// Currently bringing all this start shit outta scope to see if it stops my gpu from screaming
println!("Saving output");
img.save(format!("output/{}.png", SystemTime::now().duration_since(SystemTime::UNIX_EPOCH).unwrap().as_secs()));
}