diff options
| author | Micha White <botahamec@outlook.com> | 2023-02-05 12:28:08 -0500 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2023-02-05 12:28:08 -0500 |
| commit | 699fe35086d38b5e70cd476232bb79554cd39511 (patch) | |
| tree | d4efc136573cf5db8f47211ce55c1eb4e635bcc7 /alligator_render/src | |
| parent | a3196cda9f2e1e8f44f6315a2ef33d26f6dc36f9 (diff) | |
Loading a texture into the atlas changes it
Diffstat (limited to 'alligator_render/src')
| -rw-r--r-- | alligator_render/src/texture.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alligator_render/src/texture.rs b/alligator_render/src/texture.rs index 0afa0af..76e77a8 100644 --- a/alligator_render/src/texture.rs +++ b/alligator_render/src/texture.rs @@ -168,8 +168,8 @@ impl TextureAtlas { } /// Load a new subtexture from memory - // TODO support RGBA16 pub fn load_texture(&mut self, id: TextureId) -> Result<TextureId, TextureError> { + self.changed = true; let img = self.textures.load_texture(id)?; self.packer.pack_own(id, img).map_err(PackError)?; Ok(id) |
