aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/builtin_variables.cpp
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-11-08 14:49:07 -0800
committerEric Anholt <[email protected]>2011-11-11 08:27:51 -0800
commit919c53e87a1f6f5322bc1f1486bb3e6b954b00d5 (patch)
tree47fd1a1e874a637b82e6ef5652ddab57343fbb94 /src/glsl/builtin_variables.cpp
parent44fc3c6c1c1072ee4ba2ad3b68ccb81086d71156 (diff)
mesa: Make gl_VertexID be a system value like gl_InstanceID.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/builtin_variables.cpp')
-rw-r--r--src/glsl/builtin_variables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp
index 0d804c2b6ee..ed6b922ca62 100644
--- a/src/glsl/builtin_variables.cpp
+++ b/src/glsl/builtin_variables.cpp
@@ -98,7 +98,7 @@ static const builtin_variable builtin_120_fs_variables[] = {
};
static const builtin_variable builtin_130_vs_variables[] = {
- { ir_var_in, -1, "int", "gl_VertexID" },
+ { ir_var_system_value, SYSTEM_VALUE_VERTEX_ID, "int", "gl_VertexID" },
};
static const builtin_variable builtin_110_deprecated_uniforms[] = {