kwin: dropping LOD bias
This commit is contained in:
parent
87bcabdf99
commit
59c8ce32c1
3 changed files with 0 additions and 31 deletions
|
@ -114,8 +114,6 @@ public:
|
||||||
TexturePrivate();
|
TexturePrivate();
|
||||||
virtual ~TexturePrivate();
|
virtual ~TexturePrivate();
|
||||||
|
|
||||||
virtual void bind();
|
|
||||||
virtual void unbind();
|
|
||||||
virtual void release();
|
virtual void release();
|
||||||
virtual void onDamage();
|
virtual void onDamage();
|
||||||
|
|
||||||
|
|
|
@ -300,13 +300,3 @@ void SceneOpenGL::TexturePrivate::onDamage()
|
||||||
}
|
}
|
||||||
GLTexturePrivate::onDamage();
|
GLTexturePrivate::onDamage();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SceneOpenGL::TexturePrivate::bind()
|
|
||||||
{
|
|
||||||
GLTexturePrivate::bind();
|
|
||||||
}
|
|
||||||
|
|
||||||
void SceneOpenGL::TexturePrivate::unbind()
|
|
||||||
{
|
|
||||||
GLTexturePrivate::unbind();
|
|
||||||
}
|
|
||||||
|
|
|
@ -733,22 +733,3 @@ void SceneOpenGL::TexturePrivate::onDamage()
|
||||||
}
|
}
|
||||||
GLTexturePrivate::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();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue