gbm: do not implicitly restart rendering loop
This commit is contained in:
parent
64fc1aa0da
commit
49215f6a3d
|
@ -58,22 +58,7 @@ impl<
|
||||||
if let Some(backends) = self.backends.upgrade() {
|
if let Some(backends) = self.backends.upgrade() {
|
||||||
for (crtc, backend) in backends.borrow().iter() {
|
for (crtc, backend) in backends.borrow().iter() {
|
||||||
if let Some(backend) = backend.upgrade() {
|
if let Some(backend) = backend.upgrade() {
|
||||||
// restart rendering loop, if it was previously running
|
backend.clear_framebuffers();
|
||||||
if let Some(current_fb) = backend.current_frame_buffer.get() {
|
|
||||||
let result = if backend.crtc.commit_pending() {
|
|
||||||
backend.crtc.commit(current_fb)
|
|
||||||
} else {
|
|
||||||
RawSurface::page_flip(&backend.crtc, current_fb)
|
|
||||||
};
|
|
||||||
|
|
||||||
if let Err(err) = result {
|
|
||||||
warn!(
|
|
||||||
self.logger,
|
|
||||||
"Failed to restart rendering loop. Re-creating resources. Error: {}", err
|
|
||||||
);
|
|
||||||
// TODO bubble up
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// reset cursor
|
// reset cursor
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue