diff options
| author | Micha White <botahamec@outlook.com> | 2022-10-17 23:15:31 -0400 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2022-10-17 23:15:31 -0400 |
| commit | e06ecf6532bf3308db3d470528324917c731fee5 (patch) | |
| tree | 475cc2cae12f7c581743ebbbca7dde6e125c2854 /src | |
| parent | 9359df753ef76fdeb40a0de19c67080329710067 (diff) | |
Removed the need for users to have image for now
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) |
