Fixed incorrect shadow opacities in OpenGL mode.

svn path=/trunk/KDE/kdebase/workspace/; revision=889944
icc-effect-5.14.5
Lucas Murray 2008-11-28 04:05:31 +00:00
parent 14b6d36634
commit 7269b928ea
1 changed files with 2 additions and 2 deletions

View File

@ -616,9 +616,9 @@ void ShadowEffect::drawShadowQuadOpenGL( GLTexture *texture, QVector<float> 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();