Mesa (mesa_7_2_branch): Ensure p.w is initialised in noise demo.
Gary Wong
gary at kemper.freedesktop.org
Sat Dec 13 21:32:19 UTC 2008
Module: Mesa
Branch: mesa_7_2_branch
Commit: 415d6d447252fd92928ad6cee8688f8ca281de54
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=415d6d447252fd92928ad6cee8688f8ca281de54
Author: Gary Wong <gtw at gnu.org>
Date: Sat Dec 13 12:58:18 2008 -0700
Ensure p.w is initialised in noise demo.
(cherry picked from commit 0df3dfab82539c2477bfd4d254d1f2c6e35efb57)
---
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