Fix rare hot-plugging bug

This commit is contained in:
Drakulix 2017-12-21 16:25:21 +01:00
parent ec6eae6799
commit d0046e4c60
1 changed files with 2 additions and 4 deletions

View File

@ -174,11 +174,9 @@ impl DrmBackend {
let next_bo = egl.buffers.next_buffer.replace(None);
if let Some(next_buffer) = next_bo {
trace!(self.logger, "Releasing all front buffer");
trace!(self.logger, "Releasing old front buffer");
egl.buffers.front_buffer.set(next_buffer);
// drop and release the old buffer
} else {
unreachable!();
// drop and release the old buffer
}
})
});