backends/drm: Guard against null crtc in DrmPipeline::updateCursor

The null check was lost in fe1d4ffbc5.

BUG: 473963
wilder/Plasma/6.2
Vlad Zahorodnii 3 years ago committed by Nate Graham
parent 07773512c8
commit b78258e464
  1. 3
      src/backends/drm/drm_pipeline.cpp

@ -363,6 +363,9 @@ void DrmPipeline::atomicCommitSuccessful()
bool DrmPipeline::updateCursor()
{
if (!m_pending.crtc) {
return false;
}
bool result;
// explicitly check for the cursor plane and not for AMS, as we might not always have one
if (m_pending.crtc->cursorPlane()) {

Loading…
Cancel
Save