kwin: dropping LOD bias

This commit is contained in:
Philipp Knechtges 2012-01-07 19:46:19 +01:00
parent 87bcabdf99
commit 59c8ce32c1
3 changed files with 0 additions and 31 deletions

View file

@ -114,8 +114,6 @@ public:
TexturePrivate();
virtual ~TexturePrivate();
virtual void bind();
virtual void unbind();
virtual void release();
virtual void onDamage();

View file

@ -300,13 +300,3 @@ void SceneOpenGL::TexturePrivate::onDamage()
}
GLTexturePrivate::onDamage();
}
void SceneOpenGL::TexturePrivate::bind()
{
GLTexturePrivate::bind();
}
void SceneOpenGL::TexturePrivate::unbind()
{
GLTexturePrivate::unbind();
}

View file

@ -733,22 +733,3 @@ void SceneOpenGL::TexturePrivate::onDamage()
}
GLTexturePrivate::onDamage();
}
void SceneOpenGL::TexturePrivate::bind()
{
GLTexturePrivate::bind();
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);
}
}
void SceneOpenGL::TexturePrivate::unbind()
{
if (hasGLVersion(1, 4, 0)) {
glTexEnvf(GL_TEXTURE_FILTER_CONTROL, GL_TEXTURE_LOD_BIAS, 0.0f);
}
GLTexturePrivate::unbind();
}