diff --git a/gpui/src/platform/mac/sprite_cache.rs b/gpui/src/platform/mac/sprite_cache.rs index 97bed4141c..96a72ddebb 100644 --- a/gpui/src/platform/mac/sprite_cache.rs +++ b/gpui/src/platform/mac/sprite_cache.rs @@ -105,7 +105,7 @@ impl Atlas { fn try_insert(&mut self, size: Vector2I, mask: &[u8]) -> Option { 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(