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
This commit is contained in:
Fredrik Höglund 2010-10-25 17:59:31 +00:00
parent e3e475b214
commit e56c899fc1

View file

@ -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