Fix creation of shm buffers
This commit is contained in:
parent
62c9f986ba
commit
a2493fc90e
1 changed files with 2 additions and 2 deletions
|
|
@ -83,8 +83,6 @@ impl AppData {
|
||||||
(),
|
(),
|
||||||
);
|
);
|
||||||
|
|
||||||
pool.destroy();
|
|
||||||
|
|
||||||
let format = wl_shm::Format::try_from(format).unwrap();
|
let format = wl_shm::Format::try_from(format).unwrap();
|
||||||
let buffer = pool.create_buffer(
|
let buffer = pool.create_buffer(
|
||||||
0,
|
0,
|
||||||
|
|
@ -96,6 +94,8 @@ impl AppData {
|
||||||
(),
|
(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pool.destroy();
|
||||||
|
|
||||||
Buffer {
|
Buffer {
|
||||||
backing: Arc::new(
|
backing: Arc::new(
|
||||||
Shmbuf {
|
Shmbuf {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue