Ensure p.w is initialised in noise demo.
authorGary Wong <gtw@gnu.org>
Sat, 13 Dec 2008 19:58:18 +0000 (12:58 -0700)
committerGary Wong <gtw@gnu.org>
Sat, 13 Dec 2008 21:25:52 +0000 (14:25 -0700)
progs/glsl/noise.c

index 9da71ac775eaa140da9818ab559c2dfa57b3fae5..bd8f50036bfe6d7a96e0e20cdf568fb16e20f498 100644 (file)
@@ -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";