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:
parent
572a0904d8
commit
e57be93108
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue