stm32h735g: be sure to wait until the the buffer is no longer shown before drawing onto it

This commit is contained in:
Olivier Goffart 2022-06-15 14:52:15 +02:00 committed by Olivier Goffart
parent 4ecc2cd1c0
commit ceb030a5f7

View file

@ -324,6 +324,7 @@ impl Devices for StmDevices {
}
fn get_buffer(&mut self) -> Option<(&mut [TargetPixel], PhysicalRect)> {
while self.layer.is_swap_pending() {}
Some((self.work_fb, self.prev_dirty))
}