diff options
author | Simon Ser <contact@emersion.fr> | 2022-09-18 16:29:36 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-09-19 10:46:26 +0000 |
commit | 0556aa0c5918b90118da8abdf572b27a44e1b51d (patch) | |
tree | eee318d9d2ee07a7f35eb66be6597c4a0f322323 /include/wlr/render | |
parent | 0213da60bbc7b534c0f37965a3984b11cf8e1cd1 (diff) |
output: rejigger attach/clear for back buffer
In wlr_output_attach_render(), stop setting
wlr_output.pending.buffer. This removes one footgun: using the
wlr_buffer at that stage is invalid, because rendering operations
haven't been flushed to the GPU yet. We need to wait until
output_clear_back_buffer() for the wlr_buffer to be used safely.
Instead, set wlr_output.pending.buffer in wlr_output_test() and
wlr_output_commit().
Additionally, move the output_clear_back_buffer() from
wlr_output_commit_state() to wlr_output_commit(). This reduces the
number of calls in the failure path.
Diffstat (limited to 'include/wlr/render')
0 files changed, 0 insertions, 0 deletions