1
0
Fork 0
forked from wry/wry

wl_buffer: remember client dmabuf when converting udmabuf to shm

This commit is contained in:
Julian Orth 2026-02-11 11:13:12 +01:00
parent 7122b89cb9
commit d90ddba50a
5 changed files with 12 additions and 9 deletions

View file

@ -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));