Fix rare hot-plugging bug
This commit is contained in:
parent
ec6eae6799
commit
d0046e4c60
|
@ -174,11 +174,9 @@ impl DrmBackend {
|
||||||
let next_bo = egl.buffers.next_buffer.replace(None);
|
let next_bo = egl.buffers.next_buffer.replace(None);
|
||||||
|
|
||||||
if let Some(next_buffer) = next_bo {
|
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);
|
egl.buffers.front_buffer.set(next_buffer);
|
||||||
// drop and release the old buffer
|
// drop and release the old buffer
|
||||||
} else {
|
|
||||||
unreachable!();
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue