workaround nvidia issues with the texture cache and translucent windows

svn path=/trunk/KDE/kdebase/workspace/; revision=1195268
This commit is contained in:
Thomas Lübking 2010-11-10 18:08:46 +00:00
parent 8f5e5e4a72
commit 4db74f544d

View file

@ -370,7 +370,7 @@ void LanczosFilter::timerEvent( QTimerEvent *event )
void LanczosFilter::prepareRenderStates( GLTexture* tex, double opacity, double brightness, double saturation ) void LanczosFilter::prepareRenderStates( GLTexture* tex, double opacity, double brightness, double saturation )
{ {
#ifdef KWIN_HAVE_OPENGL_COMPOSITING #ifdef KWIN_HAVE_OPENGL_COMPOSITING
const bool alpha = true; const bool alpha = false; // true; WORKAROUND - "true" causes issues with at least nvidia chips and translucent windows "overbrightning"
// setup blending of transparent windows // setup blending of transparent windows
glPushAttrib( GL_ENABLE_BIT ); glPushAttrib( GL_ENABLE_BIT );
glEnable( GL_BLEND ); glEnable( GL_BLEND );