metal: clear damage before adding full damage
This commit is contained in:
parent
e95e764b46
commit
f8d03c25a9
2 changed files with 8 additions and 0 deletions
|
|
@ -3332,6 +3332,7 @@ impl RenderBuffer {
|
|||
pub fn damage_full(&self) {
|
||||
let dmabuf = self.dev_bo.dmabuf();
|
||||
let rect = Rect::new_sized_unchecked(0, 0, dmabuf.width, dmabuf.height);
|
||||
self.damage_queue.clear_all();
|
||||
self.damage_queue.damage(&[rect]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue