Diffusion KWin e9fd57285f31

[effects/zoom] Set wrap mode for cursor texture

Authored by zzag on Oct 4 2018, 5:20 PM.

Description

[effects/zoom] Set wrap mode for cursor texture

Summary:
With the Oxygen cursor theme, a visual glitch can appear in the
bottom-left corner of the cursor when the screen is zoomed in.

The reason for that is we're using GL_REPEAT for GL_TEXTURE_WRAP_S
and GL_TEXTURE_WRAP_T. So, when the linear filter samples neighboring
texels in the bottom, it can sample some texels from the top (because of
GL_REPEAT).

To fix that, we have to set the wrap mode to GL_CLAMP_TO_EDGE.

BUG: 338254
FIXED-IN: 5.14.0

Test Plan:
Before:

After:

Tried other cursor themes(Breeze and Adwaita), everything looks okay.

Reviewers: KWin, davidedmundson

Reviewed By: KWin, davidedmundson

Subscribers: davidedmundson, kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D15949

Details

Committed
zzagOct 4 2018, 6:40 PM
Reviewer
KWin
Differential Revision
D15949: [effects/zoom] Set wrap mode for cursor texture
Parents
R108:b3e3cf861f07: Update version number for 5.14.0 GIT_SILENT
Branches
Unknown
Tags
Unknown