diff options
-rw-r--r-- | types/output/render.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/types/output/render.c b/types/output/render.c index 035be212..6e284883 100644 --- a/types/output/render.c +++ b/types/output/render.c @@ -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; } |