From fa69c53cfc9634b4f0cfd9a601905930867651a1 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 2 Oct 2023 18:38:37 -0700 Subject: [PATCH] JPEG support --- src/main.rs | 1 + 1 file changed, 1 insertion(+) 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")), } }