Space out sprites in atlas
This prevents us from accidentally sampling a neighboring sprite.
This commit is contained in:
parent
e5d586a942
commit
7523df05cf
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ impl Atlas {
|
|||
fn try_insert(&mut self, size: Vector2I, mask: &[u8]) -> Option<RectI> {
|
||||
let allocation = self
|
||||
.allocator
|
||||
.allocate(etagere::size2(size.x(), size.y()))?;
|
||||
.allocate(etagere::size2(size.x() + 1, size.y() + 1))?;
|
||||
|
||||
let bounds = allocation.rectangle;
|
||||
let region = metal::MTLRegion::new_2d(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue