mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-14 08:22:25 -04:00
wlr_output: Don't allow commits changing render format without a buffer
This commit is contained in:
parent
3f0a10bad0
commit
3ae9c80ddf
1 changed files with 6 additions and 0 deletions
|
|
@ -621,6 +621,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