it's actually jfif

This commit is contained in:
Quaternions 2023-10-02 19:55:22 -07:00
parent afa9e7447d
commit 1727f9213c

View File

@ -343,7 +343,7 @@ fn load_image<R:Read+Seek+std::io::BufRead>(input:&mut R)->AResult<image::Dynami
input.rewind()?; input.rewind()?;
match &fourcc{ match &fourcc{
b"\x89PNG"=>Ok(image::load(input,image::ImageFormat::Png)?), b"\x89PNG"=>Ok(image::load(input,image::ImageFormat::Png)?),
b"JPEG"=>Ok(image::load(input,image::ImageFormat::Jpeg)?), b"\xFF\xD8\xFF\xE0"=>Ok(image::load(input,image::ImageFormat::Jpeg)?),//JFIF
other=>Err(anyhow::Error::msg(format!("Unknown texture format {:?}",other))), other=>Err(anyhow::Error::msg(format!("Unknown texture format {:?}",other))),
} }
} }