From d0046e4c60fffd9c0a29e9916a521d1226ef39d2 Mon Sep 17 00:00:00 2001 From: Drakulix Date: Thu, 21 Dec 2017 16:25:21 +0100 Subject: [PATCH] Fix rare hot-plugging bug --- src/backend/drm/backend.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/backend/drm/backend.rs b/src/backend/drm/backend.rs index f48feb2..768d888 100644 --- a/src/backend/drm/backend.rs +++ b/src/backend/drm/backend.rs @@ -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 } }) });