Fix noise in atlas texture

This commit is contained in:
Nathan Sobo 2021-03-23 17:27:28 -06:00
parent ad7974608b
commit 28b84c081d

View file

@ -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);