diff --git a/crates/bevy_render/src/texture/image.rs b/crates/bevy_render/src/texture/image.rs index d1a63fc817..6b8a18da21 100644 --- a/crates/bevy_render/src/texture/image.rs +++ b/crates/bevy_render/src/texture/image.rs @@ -744,7 +744,7 @@ impl Image { let image_crate_format = format .as_image_crate_format() .ok_or_else(|| TextureError::UnsupportedTextureFormat(format!("{format:?}")))?; - let mut reader = image::io::Reader::new(std::io::Cursor::new(buffer)); + let mut reader = image::ImageReader::new(std::io::Cursor::new(buffer)); reader.set_format(image_crate_format); reader.no_limits(); let dyn_img = reader.decode()?;