wl_buffer: remember client dmabuf when converting udmabuf to shm
This commit is contained in:
parent
7122b89cb9
commit
d90ddba50a
5 changed files with 12 additions and 9 deletions
|
|
@ -252,7 +252,7 @@ impl Drop for SurfaceBuffer {
|
|||
}
|
||||
return;
|
||||
}
|
||||
if let Some(dmabuf) = &self.buffer.dmabuf {
|
||||
if let Some(dmabuf) = &self.buffer.client_dmabuf {
|
||||
for (_, sync_file) in &sync_files {
|
||||
if let Err(e) = dmabuf.import_sync_file(DMA_BUF_SYNC_READ, sync_file) {
|
||||
log::error!("Could not import sync file: {}", ErrorFmt(e));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue