render: fix bug with texture atlas not packing textures in last column

This commit is contained in:
SeanOMik 2024-07-14 12:24:13 -04:00
parent b45c2f4fab
commit d02258224a
Signed by: SeanOMik
GPG Key ID: FEC9E2FC15235964
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ impl SkylinePacker {
return None;
}
if self.skylines[i].width as u32 > width_left {
if self.skylines[i].width as u32 >= width_left {
return Some(y as usize);
}