Shadow sets texture width and height if there is a shader bound.
BUG: 188352 svn path=/trunk/KDE/kdebase/workspace/; revision=959837
This commit is contained in:
parent
0ff09244f1
commit
c0a20bd38f
1 changed files with 2 additions and 0 deletions
|
@ -667,6 +667,8 @@ void ShadowEffect::drawShadowQuadOpenGL( GLTexture *texture, QVector<float> vert
|
|||
shader->setUniform("opacity", opacity);
|
||||
shader->setUniform("saturation", saturation);
|
||||
shader->setUniform("brightness", brightness);
|
||||
shader->setUniform("textureWidth", 1.0f);
|
||||
shader->setUniform("textureHeight", 1.0f);
|
||||
}
|
||||
texture->bind();
|
||||
texture->enableNormalizedTexCoords();
|
||||
|
|
Loading…
Reference in a new issue