mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
output_pick_format: Fail if no format could be chosen
This commit is contained in:
parent
75293d5fb0
commit
c4bed48fcc
1 changed files with 6 additions and 0 deletions
|
|
@ -220,6 +220,12 @@ bool output_pick_format(struct wlr_output *output,
|
|||
}
|
||||
}
|
||||
|
||||
if (format->len == 0) {
|
||||
wlr_drm_format_finish(format);
|
||||
wlr_log(WLR_DEBUG, "Failed to pick output format");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue