Mesa (master): Ensure p.w is initialised in noise demo.
Gary Wong
gary at kemper.freedesktop.org
Sat Dec 13 21:32:18 UTC 2008
Module: Mesa
Branch: master
Commit: 0df3dfab82539c2477bfd4d254d1f2c6e35efb57
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0df3dfab82539c2477bfd4d254d1f2c6e35efb57
Author: Gary Wong <gtw at gnu.org>
Date: Sat Dec 13 12:58:18 2008 -0700
Ensure p.w is initialised in noise demo.
---
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 9da71ac..bd8f500 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";
More information about the mesa-commit
mailing list