aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-16 16:25:31 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-16 16:25:31 +0200
commit1991bcbc22a1e365c5d3828d62db1f22c8aeac9d (patch)
tree99f7a4a4e9d818e5ad3c422dd778a1b7f26a787d
parent95978fc3006c01dc76be653e7e6106e4426ce2eb (diff)
downloadhurrycurry-1991bcbc22a1e365c5d3828d62db1f22c8aeac9d.tar
hurrycurry-1991bcbc22a1e365c5d3828d62db1f22c8aeac9d.tar.bz2
hurrycurry-1991bcbc22a1e365c5d3828d62db1f22c8aeac9d.tar.zst
fix shelf packing bug
-rw-r--r--light-client/tools/src/bin/tex_pack.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/light-client/tools/src/bin/tex_pack.rs b/light-client/tools/src/bin/tex_pack.rs
index 1258b5bf..5022d561 100644
--- a/light-client/tools/src/bin/tex_pack.rs
+++ b/light-client/tools/src/bin/tex_pack.rs
@@ -62,7 +62,7 @@ fn main() {
if cursor_y + height > atlas_size {
panic!("texture too big or atlas full");
}
- row_height = row_height.max(atlas_size);
+ row_height = row_height.max(height);
let texcoord = [cursor_x, cursor_y, width, height];
for (y, line) in tex.iter().enumerate() {