gl_Normal is a vec3 not a vec4.
authorEric Anholt <eric@anholt.net>
Wed, 19 May 2010 20:30:14 +0000 (13:30 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 1 Jun 2010 22:15:04 +0000 (15:15 -0700)
Fixes CorrectSwizzle1.vert.

builtin_variables.h

index 661da6cf5559223237495170ab2c88241ed2cc8a..b405b46f0714a595b9e31468518780c94e1cca3c 100644 (file)
@@ -47,7 +47,7 @@ static const builtin_variable builtin_110_deprecated_fs_variables[] = {
 
 static const builtin_variable builtin_110_deprecated_vs_variables[] = {
    { ir_var_in,  "vec4",  "gl_Vertex" },
-   { ir_var_in,  "vec4",  "gl_Normal" },
+   { ir_var_in,  "vec3",  "gl_Normal" },
    { ir_var_in,  "vec4",  "gl_Color" },
    { ir_var_in,  "vec4",  "gl_SecondaryColor" },
    { ir_var_in,  "vec4",  "gl_MultiTexCoord0" },