Mesa (mesa_7_7_branch): progs/glsl: Fix noise GLSL compilation error on Mac OS.

Vinson Lee vlee at kemper.freedesktop.org
Wed Nov 18 21:51:36 UTC 2009


Module: Mesa
Branch: mesa_7_7_branch
Commit: 0d31990b4742eccdf6ae6a3b3e16c81cc863085d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0d31990b4742eccdf6ae6a3b3e16c81cc863085d

Author: Vinson Lee <vlee at vmware.com>
Date:   Wed Nov 18 13:50:49 2009 -0800

progs/glsl: Fix noise GLSL compilation error on Mac OS.

---

 progs/glsl/noise.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/progs/glsl/noise.c b/progs/glsl/noise.c
index bb024b5..1148580 100644
--- a/progs/glsl/noise.c
+++ b/progs/glsl/noise.c
@@ -28,7 +28,7 @@ static const char *FragShaderText =
    "   vec4 p;\n"
    "   p.xy = gl_TexCoord[0].xy;\n"
    "   p.z = Slice;\n"
-   "   p.w = 0;\n"
+   "   p.w = 0.0;\n"
    "   vec4 n = noise4(p * scale);\n"
    "   gl_FragColor = n * Scale + Bias;\n"
    "}\n";




More information about the mesa-commit mailing list