summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorGary Wong <gtw@gnu.org>2008-12-13 12:58:18 -0700
committerGary Wong <gtw@gnu.org>2008-12-13 14:25:52 -0700
commit0df3dfab82539c2477bfd4d254d1f2c6e35efb57 (patch)
tree0bcb7f84c1bd7f9d74caeb8a8ecb7427cb4cbfbd /progs
parent8b69c42b356d51c3a37bc0af41738b016c2adc5b (diff)
Ensure p.w is initialised in noise demo.
Diffstat (limited to 'progs')
-rw-r--r--progs/glsl/noise.c1
1 files changed, 1 insertions, 0 deletions
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";