diff --git a/src/backends/drm/drm_pipeline.cpp b/src/backends/drm/drm_pipeline.cpp index 665767289a..6adeb107bd 100644 --- a/src/backends/drm/drm_pipeline.cpp +++ b/src/backends/drm/drm_pipeline.cpp @@ -176,7 +176,9 @@ bool DrmPipeline::commitPipelines(const QVector &pipelines, Commit if (pipeline->pending.crtc) { pipeline->pending.crtc->commitPending(); pipeline->pending.crtc->primaryPlane()->commitPending(); - pipeline->pending.crtc->cursorPlane()->commitPending(); + if (pipeline->pending.crtc->cursorPlane()) { + pipeline->pending.crtc->cursorPlane()->commitPending(); + } } if (mode != CommitMode::Test) { pipeline->m_modesetPresentPending = false; @@ -186,7 +188,9 @@ bool DrmPipeline::commitPipelines(const QVector &pipelines, Commit pipeline->pending.crtc->primaryPlane()->setNext(pipeline->m_primaryBuffer); pipeline->pending.crtc->commit(); pipeline->pending.crtc->primaryPlane()->commit(); - pipeline->pending.crtc->cursorPlane()->commit(); + if (pipeline->pending.crtc->cursorPlane()) { + pipeline->pending.crtc->cursorPlane()->commit(); + } } pipeline->m_current = pipeline->pending; if (modeset && pipeline->activePending()) {