mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 02:46:43 +00:00
Fix noise in atlas texture
This commit is contained in:
parent
ad7974608b
commit
28b84c081d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue