From 0df3dfab82539c2477bfd4d254d1f2c6e35efb57 Mon Sep 17 00:00:00 2001 From: Gary Wong Date: Sat, 13 Dec 2008 12:58:18 -0700 Subject: [PATCH] Ensure p.w is initialised in noise demo. --- progs/glsl/noise.c | 1 + 1 file changed, 1 insertion(+) 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"; -- 2.30.2