aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/drm/drm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 5e614d86..b7565d28 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -1642,8 +1642,8 @@ struct wlr_drm_lease *wlr_drm_create_lease(struct wlr_output **outputs,
objects[n_objects++] = conn->id;
wlr_log(WLR_DEBUG, "Connector %d", conn->id);
- if (!conn->crtc) {
- wlr_log(WLR_ERROR, "Connector has no CRTC");
+ if (!drm_connector_alloc_crtc(conn)) {
+ wlr_log(WLR_ERROR, "Failled to allocate connector CRTC");
return NULL;
}