backends/drm: Specify clear color for cursor plane

Otherwise the results are undefined.

BUG: 454068
Tested-by: Merge Service <https://invent.kde.org/plasma/kwin/-/merge_requests/2466>
Part-of: <https://invent.kde.org/plasma/kwin/-/merge_requests/2466>
This commit is contained in:
Vlad Zahorodnii 2022-05-25 12:00:48 +03:00 committed by Merge Service
parent 572a0904d8
commit e57be93108

View file

@ -449,7 +449,9 @@ void DrmOutput::renderCursorOpengl(const QSize &cursorSize)
QMatrix4x4 mvp;
mvp.ortho(QRect(QPoint(), renderTarget.size()));
glClearColor(0, 0, 0, 0);
glClear(GL_COLOR_BUFFER_BIT);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);