From: Gary Wong Date: Sat, 13 Dec 2008 19:58:18 +0000 (-0700) Subject: Ensure p.w is initialised in noise demo. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0df3dfab82539c2477bfd4d254d1f2c6e35efb57;p=mesa.git Ensure p.w is initialised in noise demo. --- diff --git a/progs/glsl/noise.c b/progs/glsl/noise.c index 9da71ac775e..bd8f50036bf 100644 --- a/progs/glsl/noise.c +++ b/progs/glsl/noise.c @@ -30,6 +30,7 @@ static const char *FragShaderText = " vec4 p;\n" " p.xy = gl_TexCoord[0].xy;\n" " p.z = Slice;\n" + " p.w = 0;\n" " vec4 n = noise4(p * scale);\n" " gl_FragColor = n * Scale + Bias;\n" "}\n";