Fixed incorrect shadow opacities in OpenGL mode.
svn path=/trunk/KDE/kdebase/workspace/; revision=889944
This commit is contained in:
parent
14b6d36634
commit
7269b928ea
1 changed files with 2 additions and 2 deletions
|
@ -616,9 +616,9 @@ void ShadowEffect::drawShadowQuadOpenGL( GLTexture *texture, QVector<float> vert
|
||||||
QColor color, QRegion region, float opacity, float brightness, float saturation )
|
QColor color, QRegion region, float opacity, float brightness, float saturation )
|
||||||
{
|
{
|
||||||
if( color.isValid() )
|
if( color.isValid() )
|
||||||
glColor4f( color.redF(), color.greenF(), color.blueF(), opacity );
|
glColor4f( color.redF(), color.greenF(), color.blueF(), 1.0 );
|
||||||
else
|
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);
|
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
|
||||||
prepareRenderStates( texture, opacity, brightness, saturation );
|
prepareRenderStates( texture, opacity, brightness, saturation );
|
||||||
texture->bind();
|
texture->bind();
|
||||||
|
|
Loading…
Reference in a new issue