From 1991bcbc22a1e365c5d3828d62db1f22c8aeac9d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 16 Jul 2024 16:25:31 +0200 Subject: fix shelf packing bug --- light-client/tools/src/bin/tex_pack.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'light-client/tools/src/bin/tex_pack.rs') 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() { -- cgit v1.2.3-70-g09d2