Mercurial > touhou
diff examples/stdrenderer.rs @ 717:d5d5496e4e53
examples: Propagate image loading errors.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 23 Sep 2019 14:01:35 +0200 |
parents | 2b2376811f46 |
children | 0a250ddfae79 |
line wrap: on
line diff
--- a/examples/stdrenderer.rs +++ b/examples/stdrenderer.rs @@ -159,7 +159,7 @@ fn main() { let mut surface = GlfwSurface::new(WindowDim::Windowed(384, 448), "Touhou", WindowOpt::default()).unwrap(); // Open the image atlas matching this ANM. - let tex = load_anm_image(&mut surface, &anm0, anm_filename); + let tex = load_anm_image(&mut surface, &anm0, anm_filename).expect("image loading"); // set the uniform interface to our type so that we can read textures from the shader let program =