diff options
author | Gary Wong <gtw@gnu.org> | 2008-12-13 12:58:18 -0700 |
---|---|---|
committer | Gary Wong <gtw@gnu.org> | 2008-12-13 12:58:18 -0700 |
commit | 547de60d95326ef826f122d144472a4e9d50434d (patch) | |
tree | 3c89bb9062dee974395d34e7de9f2fa3ccdb763c | |
parent | 973659b24f5d3a57398cdfdfa23fa1d144c343d1 (diff) |
Ensure p.w is initialised in noise demo.
-rw-r--r-- | progs/glsl/noise.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/progs/glsl/noise.c b/progs/glsl/noise.c index adccd1a7c8..440e388753 100644 --- a/progs/glsl/noise.c +++ b/progs/glsl/noise.c @@ -29,6 +29,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"; |