From b437109ebf4da243fd643f0a31546d0d0155b0a4 Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:22 +0100 Subject: fix(render): dont use deprecated image methods --- stockton-render/src/draw/texture/resolver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stockton-render/src/draw') 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 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()); } } } -- cgit v1.2.3