From 0df3dfab82539c2477bfd4d254d1f2c6e35efb57 Mon Sep 17 00:00:00 2001 From: Gary Wong Date: Sat, 13 Dec 2008 12:58:18 -0700 Subject: Ensure p.w is initialised in noise demo. --- progs/glsl/noise.c | 1 + 1 file changed, 1 insertion(+) (limited to 'progs') diff --git a/progs/glsl/noise.c b/progs/glsl/noise.c index 9da71ac775..bd8f50036b 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"; -- cgit v1.2.3