Set OpenGL decoration texture wrap mode to GL_CLAMP_TO_EDGE. Removes

halo effect during window scaling.

svn path=/trunk/KDE/kdebase/workspace/; revision=980162
This commit is contained in:
Lucas Murray 2009-06-11 10:35:49 +00:00
parent 8d09ed341a
commit d2e10a529f

View file

@ -1552,6 +1552,7 @@ void SceneOpenGL::Window::paintDecoration( const QPixmap* decoration, TextureTyp
}
else
decorationTexture->setFilter( GL_NEAREST );
decorationTexture->setWrapMode( GL_CLAMP_TO_EDGE );
decorationTexture->bind();
decorationTexture->enableUnnormalizedTexCoords();