From a2493fc90e3d67818b3779960256b3557d4197ad Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Mon, 1 Apr 2024 14:09:15 -0700 Subject: [PATCH] Fix creation of shm buffers --- src/wayland/buffer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland/buffer.rs b/src/wayland/buffer.rs index 8af08a5..37ccb19 100644 --- a/src/wayland/buffer.rs +++ b/src/wayland/buffer.rs @@ -83,8 +83,6 @@ impl AppData { (), ); - pool.destroy(); - let format = wl_shm::Format::try_from(format).unwrap(); let buffer = pool.create_buffer( 0, @@ -96,6 +94,8 @@ impl AppData { (), ); + pool.destroy(); + Buffer { backing: Arc::new( Shmbuf {