Skip to content

Commit

Permalink
Fix breaking image 0.25.2 release. (bevyengine#14421)
Browse files Browse the repository at this point in the history
  • Loading branch information
tychedelia authored Jul 21, 2024
1 parent 2158f3d commit 08d3497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/texture/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()?;
Expand Down

0 comments on commit 08d3497

Please sign in to comment.