From e56c899fc16f84241a6942f326742a22461e857d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Mon, 25 Oct 2010 17:59:31 +0000 Subject: [PATCH] Work around a bug in the GLSL compiler in Mesa 7.9. BUG: 255230 FIXED-IN: 4.5.3 svn path=/trunk/KDE/kdebase/workspace/; revision=1189731 --- effects/explosion/data/explosion.frag | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/effects/explosion/data/explosion.frag b/effects/explosion/data/explosion.frag index 863ea50b84..9a669d168d 100644 --- a/effects/explosion/data/explosion.frag +++ b/effects/explosion/data/explosion.frag @@ -27,7 +27,8 @@ void main() if(any(greaterThan(dist, rend-rstart))) discard;//alpha = 0.0; - vec4 transformedtexcoord = vec4(rstart + dist, vec2(1.0)) * gl_TextureMatrix[0]; + vec2 const_1 = vec2(1.0); // Needed to work around a bug in the GLSL compiler in mesa 7.9 + vec4 transformedtexcoord = vec4(rstart + dist, const_1) * gl_TextureMatrix[0]; vec3 tex = texture2D(winTexture, transformedtexcoord.xy).rgb; #if 0 // ATM we ignore custom opacity values because Fade effect fades out the