mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-04 04:06:09 -05:00
Merge branch 'zero-resolution' into 'master'
output-swapchain-manager: Reject zero resolution See merge request wlroots/wlroots!5246
This commit is contained in:
commit
a7f7369a44
1 changed files with 4 additions and 0 deletions
|
|
@ -108,6 +108,10 @@ static bool manager_output_prepare(struct wlr_output_swapchain_manager_output *m
|
|||
|
||||
int width, height;
|
||||
output_pending_resolution(output, state, &width, &height);
|
||||
if (width == 0 || height == 0) {
|
||||
wlr_log(WLR_DEBUG, "Cannot allocate swapchain for zero resolution (%dx%d)", width, height);
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32_t fmt = output->render_format;
|
||||
if (state->committed & WLR_OUTPUT_STATE_RENDER_FORMAT) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue