1
0
Fork 0
forked from wry/wry

metal: don't overwrite active FB in non-FB flip events

This commit is contained in:
Julian Orth 2024-07-12 00:47:01 +02:00
parent 73c5010e4e
commit 3f4a677d0c

View file

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