Skip to content

clients/constraints: Fix up buffer handling

Derek Foreman requested to merge derekf/weston:constraint_cleanup into main

Clear the selected buffer pointer immediately before the array walk to pick a new buffer so we don't accidentally re-use the attached buffer when it's already in use.

Set the buffer used bit only when we attach and commit a buffer - this way we don't accidentally consume all our buffers with no way to have them released.

Clean up buffers based on wl_buffer presence instead of used at end of run.

Signed-off-by: Derek Foreman derek.foreman@collabora.com

Merge request reports

Loading