Fix the type of gl_FogFragCoord.
authorEric Anholt <eric@anholt.net>
Wed, 14 Apr 2010 22:27:39 +0000 (15:27 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 14 Apr 2010 22:28:01 +0000 (15:28 -0700)
builtin_variables.h

index 902ff22..6c14a4a 100644 (file)
@@ -42,7 +42,7 @@ static const builtin_variable builtin_core_fs_variables[] = {
 static const builtin_variable builtin_110_deprecated_fs_variables[] = {
    { ir_var_in,  "vec4",  "gl_Color" },
    { ir_var_in,  "vec4",  "gl_SecondaryColor" },
-   { ir_var_in,  "vec4",  "gl_FogFragCoord" },
+   { ir_var_in,  "float", "gl_FogFragCoord" },
 };
 
 static const builtin_variable builtin_110_deprecated_vs_variables[] = {
@@ -64,7 +64,7 @@ static const builtin_variable builtin_110_deprecated_vs_variables[] = {
    { ir_var_out, "vec4",  "gl_BackColor" },
    { ir_var_out, "vec4",  "gl_FrontSecondaryColor" },
    { ir_var_out, "vec4",  "gl_BackSecondaryColor" },
-   { ir_var_out, "vec4",  "gl_FogFragCoord" },
+   { ir_var_out, "float", "gl_FogFragCoord" },
 };
 
 static const builtin_variable builtin_130_vs_variables[] = {