diff options
-rw-r--r-- | light-client/tools/src/bin/tex_pack.rs | 2 |
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() { |