From c0a20bd38f826761a167d88d2194bc6662602ce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 27 Apr 2009 11:12:20 +0000 Subject: [PATCH] Shadow sets texture width and height if there is a shader bound. BUG: 188352 svn path=/trunk/KDE/kdebase/workspace/; revision=959837 --- effects/shadow/shadow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/effects/shadow/shadow.cpp b/effects/shadow/shadow.cpp index 3577ddc6b2..0aab471db5 100644 --- a/effects/shadow/shadow.cpp +++ b/effects/shadow/shadow.cpp @@ -667,6 +667,8 @@ void ShadowEffect::drawShadowQuadOpenGL( GLTexture *texture, QVector 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();