mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-13 14:32:57 -04:00
wlr_output: Don't allow commits changing render format without a buffer
This commit is contained in:
parent
cc1c69c9d8
commit
743af2216d
1 changed files with 6 additions and 0 deletions
|
|
@ -659,6 +659,12 @@ static bool output_basic_test(struct wlr_output *output,
|
|||
}
|
||||
}
|
||||
|
||||
if ((state->committed & WLR_OUTPUT_STATE_RENDER_FORMAT) &&
|
||||
(state->committed & WLR_OUTPUT_STATE_BUFFER) == 0) {
|
||||
wlr_log(WLR_DEBUG, "Tried to change the render format without a buffer.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (state->committed & WLR_OUTPUT_STATE_RENDER_FORMAT) {
|
||||
struct wlr_allocator *allocator = output->allocator;
|
||||
assert(allocator != NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue