Commit e5b2fca4 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

scenes/opengl: Use GL_CLAMP_TO_EDGE wrap mode with sw cursor

We use the GL_LINEAR magnification filter. This means that GL_REPEAT
wrap mode cannot be used for the software cursor because sampling texels
beyond the right texture edge is the same as sampling texels on the
left edge. This may produce undesired visual artifacts.
parent 329e816f
......@@ -586,6 +586,7 @@ void SceneOpenGL2::paintCursor(const QRegion &rendered)
m_cursorTexture.reset(new GLTexture(img));
// init now
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment