From: Gary Wong Date: Sun, 14 Dec 2008 03:06:21 +0000 (-0700) Subject: Fix silly type mismatch error in multinoise demo. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a42342cd90c19d8c29093e91d07d7efab5b5d25a;p=mesa.git Fix silly type mismatch error in multinoise demo. --- diff --git a/progs/glsl/multinoise.c b/progs/glsl/multinoise.c index 914b872f449..2351863aff8 100644 --- a/progs/glsl/multinoise.c +++ b/progs/glsl/multinoise.c @@ -23,19 +23,23 @@ static const char *VertShaderText = static const char *FragShaderText[ 4 ] = { "void main()\n" "{\n" - " gl_FragColor = noise3( gl_TexCoord[ 0 ].w ) * 0.5 + 0.5;\n" + " gl_FragColor.rgb = noise3( gl_TexCoord[ 0 ].w ) * 0.5 + 0.5;\n" + " gl_FragColor.a = 1;\n" "}\n", "void main()\n" "{\n" - " gl_FragColor = noise3( gl_TexCoord[ 0 ].xw ) * 0.5 + 0.5;\n" + " gl_FragColor.rgb = noise3( gl_TexCoord[ 0 ].xw ) * 0.5 + 0.5;\n" + " gl_FragColor.a = 1;\n" "}\n", "void main()\n" "{\n" - " gl_FragColor = noise3( gl_TexCoord[ 0 ].xyw ) * 0.5 + 0.5;\n" + " gl_FragColor.rgb = noise3( gl_TexCoord[ 0 ].xyw ) * 0.5 + 0.5;\n" + " gl_FragColor.a = 1;\n" "}\n", "void main()\n" "{\n" - " gl_FragColor = noise3( gl_TexCoord[ 0 ].xyzw ) * 0.5 + 0.5;\n" + " gl_FragColor.rgb = noise3( gl_TexCoord[ 0 ].xyzw ) * 0.5 + 0.5;\n" + " gl_FragColor.a = 1;\n" "}\n" };