From e06ecf6532bf3308db3d470528324917c731fee5 Mon Sep 17 00:00:00 2001 From: Micha White Date: Mon, 17 Oct 2022 23:15:31 -0400 Subject: Removed the need for users to have image for now --- src/texture.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/texture.rs b/src/texture.rs index ee9ff26..293a202 100644 --- a/src/texture.rs +++ b/src/texture.rs @@ -210,11 +210,6 @@ impl TextureAtlas { format: ImageFormat, ) -> Result { let img = image::load_from_memory_with_format(buf, format.format())?.into_rgba8(); - Ok(self.pack_rgba8(img)?) - } - - /// Add a new subtexture - pub fn pack_rgba8(&mut self, img: RgbaImage) -> Result { let id = TextureId::new(); self.packer.pack_own(id, img).map_err(PackError)?; Ok(id) -- cgit v1.2.3