drm: avoid a crash when no cursor plane is present

This commit is contained in:
Vaxry 2024-07-20 15:55:18 +02:00
parent 35e00a4a9d
commit af219a0a2c

View file

@ -1437,7 +1437,7 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
if (connector->crtc->pendingCursor) if (connector->crtc->pendingCursor)
data.cursorFB = connector->crtc->pendingCursor; data.cursorFB = connector->crtc->pendingCursor;
else else if (connector->crtc->cursor)
data.cursorFB = connector->crtc->cursor->front; data.cursorFB = connector->crtc->cursor->front;
if (data.cursorFB) { if (data.cursorFB) {