Keep unreferenced buffers around
One problem with delaying destruction of buffer objects is that the compositor may create a shadow that references defunct buffers. One way to fix that issue is to immediately destroy buffers. However, there is other way to address the issue - keep released buffers alive. If a buffer is kept alive by the client, then it will most likely be used again. It also simplifies buffer management. BUG: 425233
This commit is contained in:
parent
e727dc2fa9
commit
260d6e7a22
1 changed files with 0 additions and 1 deletions
|
@ -240,7 +240,6 @@ void BufferInterface::unref()
|
|||
wl_buffer_send_release(d->buffer);
|
||||
wl_client_flush(wl_resource_get_client(d->buffer));
|
||||
}
|
||||
deleteLater();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue