render: fix bug with texture atlas not packing textures in last column
This commit is contained in:
parent
b45c2f4fab
commit
d02258224a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue