diff --git a/src/main.rs b/src/main.rs index a700a19..c994b9e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -342,6 +342,7 @@ fn load_image(input:&mut R)->AResultOk(image::load(input,image::ImageFormat::Png)?), + b"JPEG"=>Ok(image::load(input,image::ImageFormat::Jpeg)?), _=>Err(anyhow::Error::msg("Unknown texture format")), } }