summaryrefslogtreecommitdiff
path: root/src/texture.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/texture.rs')
-rw-r--r--src/texture.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/texture.rs b/src/texture.rs
index 9184304..f5d1c34 100644
--- a/src/texture.rs
+++ b/src/texture.rs
@@ -64,6 +64,7 @@ pub struct TextureAtlases<'a> {
packer: MultiTexturePacker<'a, image::RgbaImage, TextureId>,
width: u32,
height: u32,
+ changed: bool,
}
impl<'a> Default for TextureAtlases<'a> {
@@ -85,6 +86,7 @@ impl<'a> TextureAtlases<'a> {
}),
width,
height,
+ changed: false,
}
}
@@ -99,6 +101,7 @@ impl<'a> TextureAtlases<'a> {
self.packer
.pack_own(id, img)
.map_err(TextureError::TextureTooLarge)?;
+ self.changed = true;
Ok(id)
}