diff options
author | Eric Anholt <[email protected]> | 2010-07-07 19:45:22 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-07-07 19:45:22 -0700 |
commit | 152b55e74da7bf548d8846538b85960f703d6059 (patch) | |
tree | 4ac3a168e20c1fcd230f7c568959812eb50ab555 /src/glsl/builtin_variables.h | |
parent | ea2a03f0a5b8b58ea88ecb607664ea50c9d6e96e (diff) |
glsl2: Add support for gl_PointCoord in 1.20.
Fixes glsl-fs-pointcoord on swrast (remains broken on 965, like master)
Diffstat (limited to 'src/glsl/builtin_variables.h')
-rw-r--r-- | src/glsl/builtin_variables.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/builtin_variables.h b/src/glsl/builtin_variables.h index 77f2fe55023..9551e1accf9 100644 --- a/src/glsl/builtin_variables.h +++ b/src/glsl/builtin_variables.h @@ -70,6 +70,10 @@ static const builtin_variable builtin_110_deprecated_vs_variables[] = { { ir_var_out, VERT_RESULT_FOGC, "float", "gl_FogFragCoord" }, }; +static const builtin_variable builtin_120_fs_variables[] = { + { ir_var_in, FRAG_ATTRIB_PNTC, "vec2", "gl_PointCoord" }, +}; + static const builtin_variable builtin_130_vs_variables[] = { { ir_var_in, -1, "int", "gl_VertexID" }, }; |