From a7ab423f933269a06c045a74ae7d2c9bcdd6618d Mon Sep 17 00:00:00 2001 From: Rivo Laks Date: Fri, 24 Aug 2007 18:45:08 +0000 Subject: [PATCH] Use texture lod bias when available to make trilinear-filtered windows look a bit sharper svn path=/trunk/KDE/kdebase/workspace/; revision=704372 --- scene_opengl.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 2c75296e9a..11c69c28cb 100644 --- a/scene_opengl.cpp +++ b/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()