Use GL_CLAMP_TO_EDGE for cap texture, so the cap is painted correctly.

svn path=/trunk/KDE/kdebase/workspace/; revision=846173
This commit is contained in:
Martin Gräßlin 2008-08-13 08:16:41 +00:00
parent fe4c100195
commit 0d5e84df02

View file

@ -131,7 +131,7 @@ CubeEffect::CubeEffect()
} }
capTexture = new GLTexture( img ); capTexture = new GLTexture( img );
capTexture->setFilter( GL_LINEAR ); capTexture->setFilter( GL_LINEAR );
capTexture->setWrapMode( GL_CLAMP ); capTexture->setWrapMode( GL_CLAMP_TO_EDGE );
} }
} }