mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-25 06:59:42 -05:00
wlr_output_commit_state: Make sure to clear the back buffer
Fixes: #3445
This commit is contained in:
parent
c2952411d3
commit
808e660291
1 changed files with 2 additions and 0 deletions
|
|
@ -706,12 +706,14 @@ bool wlr_output_commit_state(struct wlr_output *output,
|
|||
const struct wlr_output_state *state) {
|
||||
if (!output_basic_test(output, state)) {
|
||||
wlr_log(WLR_ERROR, "Basic output test failed for %s", output->name);
|
||||
output_clear_back_buffer(output);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Duplicate the state because we might mutate it in output_ensure_buffer
|
||||
struct wlr_output_state pending = *state;
|
||||
if (!output_ensure_buffer(output, &pending)) {
|
||||
output_clear_back_buffer(output);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue