diff --git a/gpui/src/platform/mac/sprite_cache.rs b/gpui/src/platform/mac/sprite_cache.rs index 3b444f0953..c47c0cbf96 100644 --- a/gpui/src/platform/mac/sprite_cache.rs +++ b/gpui/src/platform/mac/sprite_cache.rs @@ -107,8 +107,8 @@ impl Atlas { let region = metal::MTLRegion::new_2d( bounds.min.x as u64, bounds.min.y as u64, - bounds.width() as u64, - bounds.height() as u64, + size.x() as u64, + size.y() as u64, ); self.texture .replace_region(region, 0, mask.as_ptr() as *const _, size.x() as u64);