diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:22 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:22 +0100 |
commit | b437109ebf4da243fd643f0a31546d0d0155b0a4 (patch) | |
tree | 800b0a417efd95506955597d53b6d3ca5c41baf5 /stockton-render/src/draw/texture | |
parent | 767b1c878532924775d5be7307e5aec10872e443 (diff) |
fix(render): dont use deprecated image methods
Diffstat (limited to 'stockton-render/src/draw/texture')
-rw-r--r-- | stockton-render/src/draw/texture/resolver.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stockton-render/src/draw/texture/resolver.rs b/stockton-render/src/draw/texture/resolver.rs index 668ea32..f33f0a1 100644 --- a/stockton-render/src/draw/texture/resolver.rs +++ b/stockton-render/src/draw/texture/resolver.rs @@ -48,7 +48,7 @@ impl<'a> TextureResolver<RgbaImage> for BasicFSResolver<'a> { if let Ok(file) = Reader::open(path) { if let Ok(guessed) = file.with_guessed_format() { if let Ok(decoded) = guessed.decode() { - return Some(decoded.into_rgba()); + return Some(decoded.into_rgba8()); } } } |