Use texture lod bias when available to make trilinear-filtered windows look a bit sharper

svn path=/trunk/KDE/kdebase/workspace/; revision=704372
remotes/origin/Plasma/5.0
Rivo Laks 19 years ago
parent 5fce729794
commit a7ab423f93
  1. 7
      scene_opengl.cpp

@ -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…
Cancel
Save