backends/drm: Fix software cursor fallback in DrmOutput::renderCursorOpengl()

We need to return if the cursor sprite is bigger than DrmGpu::cursorSize().

BUG: 458036
This commit is contained in:
Vlad Zahorodnii 2022-09-01 16:06:38 +03:00
parent df79d68309
commit 207a16f14f

View file

@ -188,6 +188,7 @@ void DrmOutput::updateCursor()
m_pipeline->setCursor();
}
m_setCursorSuccessful = false;
return;
}
const QSize surfaceSize = m_gpu->cursorSize() / scale();