diff options
-rw-r--r-- | backend/drm/drm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 95b27f04..156b6b7b 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -959,7 +959,7 @@ static const struct wlr_drm_format_set *drm_connector_get_cursor_formats( return NULL; } struct wlr_drm_connector *conn = get_drm_connector_from_output(output); - if (!conn->crtc) { + if (!conn->crtc && !drm_connector_alloc_crtc(conn)) { return NULL; } struct wlr_drm_plane *plane = conn->crtc->cursor; @@ -985,7 +985,7 @@ static const struct wlr_drm_format_set *drm_connector_get_primary_formats( return NULL; } struct wlr_drm_connector *conn = get_drm_connector_from_output(output); - if (!conn->crtc) { + if (!conn->crtc && !drm_connector_alloc_crtc(conn)) { return NULL; } if (conn->backend->parent) { |