metal: don't overwrite active FB in non-FB flip events
This commit is contained in:
parent
73c5010e4e
commit
3f4a677d0c
1 changed files with 3 additions and 3 deletions
|
|
@ -2172,9 +2172,9 @@ impl MetalBackend {
|
|||
_ => return,
|
||||
};
|
||||
connector.can_present.set(true);
|
||||
connector
|
||||
.active_framebuffer
|
||||
.set(connector.next_framebuffer.take());
|
||||
if let Some(fb) = connector.next_framebuffer.take() {
|
||||
connector.active_framebuffer.set(Some(fb));
|
||||
}
|
||||
if connector.has_damage.get() || connector.cursor_changed.get() {
|
||||
connector.schedule_present();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue