aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/renderer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c
index 8d137ae1..26cf2158 100644
--- a/backend/drm/renderer.c
+++ b/backend/drm/renderer.c
@@ -177,6 +177,12 @@ bool drm_plane_pick_render_format(struct wlr_drm_plane *plane,
return false;
}
+ if (fmt->len == 0) {
+ wlr_drm_format_finish(fmt);
+ wlr_log(WLR_DEBUG, "Failed to find matching plane and renderer modifiers");
+ return false;
+ }
+
return true;
}