Use texture lod bias when available to make trilinear-filtered windows look a bit sharper
svn path=/trunk/KDE/kdebase/workspace/; revision=704372
This commit is contained in:
parent
5fce729794
commit
a7ab423f93
1 changed files with 7 additions and 0 deletions
|
@ -749,7 +749,14 @@ SceneOpenGL::Texture::~Texture()
|
|||
|
||||
void SceneOpenGL::Texture::init()
|
||||
{
|
||||
bind();
|
||||
bound_glxpixmap = None;
|
||||
if( hasGLVersion( 1, 4, 0 ))
|
||||
{
|
||||
// Lod bias makes the trilinear-filtered texture look a bit sharper
|
||||
glTexEnvf( GL_TEXTURE_FILTER_CONTROL, GL_TEXTURE_LOD_BIAS, -1.0f );
|
||||
}
|
||||
unbind();
|
||||
}
|
||||
|
||||
void SceneOpenGL::Texture::discard()
|
||||
|
|
Loading…
Reference in a new issue