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:
Martin Gräßlin 2009-04-27 11:12:20 +00:00
parent 0ff09244f1
commit c0a20bd38f

View file

@ -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();