From 37c3e0d158c32a0fe51c3991f94af8f5247690bc Mon Sep 17 00:00:00 2001 From: nerdopolis turfwalker Date: Sun, 12 Dec 2021 23:26:46 -0500 Subject: [PATCH] Fix crash on simpledrm --- src/backends/drm/drm_pipeline.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backends/drm/drm_pipeline.cpp b/src/backends/drm/drm_pipeline.cpp index 1ad98e4a7e..7315c79405 100644 --- a/src/backends/drm/drm_pipeline.cpp +++ b/src/backends/drm/drm_pipeline.cpp @@ -382,7 +382,8 @@ void DrmPipeline::prepareModeset() pending.crtc->primaryPlane()->setPending(DrmPlane::PropertyIndex::CrtcId, activePending() ? pending.crtc->id() : 0); pending.crtc->primaryPlane()->setTransformation(DrmPlane::Transformation::Rotate0); - pending.crtc->cursorPlane()->setTransformation(DrmPlane::Transformation::Rotate0); + if (pending.crtc->cursorPlane()) + pending.crtc->cursorPlane()->setTransformation(DrmPlane::Transformation::Rotate0); } void DrmPipeline::applyPendingChanges()