diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/texture.rs | 5 |
1 files changed, 0 insertions, 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<TextureId, TextureError> { 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<TextureId, PackError> { let id = TextureId::new(); self.packer.pack_own(id, img).map_err(PackError)?; Ok(id) |
