stupid stupid stupid. buffer write bug
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user