summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/lower_vertex_id.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/lower_vertex_id.cpp')
-rw-r--r--src/compiler/glsl/lower_vertex_id.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/lower_vertex_id.cpp b/src/compiler/glsl/lower_vertex_id.cpp
index 3da7a2f1b3b..6f46945026c 100644
--- a/src/compiler/glsl/lower_vertex_id.cpp
+++ b/src/compiler/glsl/lower_vertex_id.cpp
@@ -100,7 +100,7 @@ lower_vertex_id_visitor::visit(ir_dereference_variable *ir)
if (gl_BaseVertex == NULL) {
gl_BaseVertex = new(mem_ctx) ir_variable(int_t, "gl_BaseVertex",
ir_var_system_value);
- gl_BaseVertex->data.how_declared = ir_var_declared_implicitly;
+ gl_BaseVertex->data.how_declared = ir_var_hidden;
gl_BaseVertex->data.read_only = true;
gl_BaseVertex->data.location = SYSTEM_VALUE_BASE_VERTEX;
gl_BaseVertex->data.explicit_location = true;