From af219a0a2c575adf576fa4d39f88df992180fe21 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 20 Jul 2024 15:55:18 +0200 Subject: [PATCH] drm: avoid a crash when no cursor plane is present --- src/backend/drm/DRM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index e853d85..326b02f 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -1437,7 +1437,7 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) { if (connector->crtc->pendingCursor) data.cursorFB = connector->crtc->pendingCursor; - else + else if (connector->crtc->cursor) data.cursorFB = connector->crtc->cursor->front; if (data.cursorFB) {