From 7269b928ea316f8855eab19f5623b853515e288a Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Fri, 28 Nov 2008 04:05:31 +0000 Subject: [PATCH] Fixed incorrect shadow opacities in OpenGL mode. svn path=/trunk/KDE/kdebase/workspace/; revision=889944 --- effects/shadow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/effects/shadow.cpp b/effects/shadow.cpp index 8ddeeeff8c..2c531ab128 100644 --- a/effects/shadow.cpp +++ b/effects/shadow.cpp @@ -616,9 +616,9 @@ void ShadowEffect::drawShadowQuadOpenGL( GLTexture *texture, QVector vert QColor color, QRegion region, float opacity, float brightness, float saturation ) { if( color.isValid() ) - glColor4f( color.redF(), color.greenF(), color.blueF(), opacity ); + glColor4f( color.redF(), color.greenF(), color.blueF(), 1.0 ); else - glColor4f( 1.0, 1.0, 1.0, opacity ); + glColor4f( 1.0, 1.0, 1.0, 1.0 ); glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); prepareRenderStates( texture, opacity, brightness, saturation ); texture->bind();