Fix creation of shm buffers

This commit is contained in:
Ian Douglas Scott 2024-04-01 14:09:15 -07:00
parent 62c9f986ba
commit a2493fc90e

View file

@ -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 {