projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b69c42
)
Ensure p.w is initialised in noise demo.
author
Gary Wong
<gtw@gnu.org>
Sat, 13 Dec 2008 19:58:18 +0000
(12:58 -0700)
committer
Gary Wong
<gtw@gnu.org>
Sat, 13 Dec 2008 21:25:52 +0000
(14:25 -0700)
progs/glsl/noise.c
patch
|
blob
|
history
diff --git
a/progs/glsl/noise.c
b/progs/glsl/noise.c
index 9da71ac775eaa140da9818ab559c2dfa57b3fae5..bd8f50036bfe6d7a96e0e20cdf568fb16e20f498 100644
(file)
--- 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";