summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2013-09-29 08:08:46 -0700
committerPaul Berry <[email protected]>2013-10-10 14:26:56 -0700
commitd2e66b953e458b591f86207d8b21253e1a9fbf08 (patch)
tree606fa407c96daa3aa3de0f27fb254fd01b1024d2 /src/glsl
parent192d05f2770797db61d30a06f2e07602575a9791 (diff)
glsl: Fix block name of built-in gl_PerVertex interface block.
Previously, we erroneously used the name "gl_in" for both the block name and the instance name. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl')
-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 6fc9183ad14..6f93d96c691 100644
--- a/src/glsl/builtin_variables.cpp
+++ b/src/glsl/builtin_variables.cpp
@@ -828,7 +828,7 @@ builtin_variable_generator::generate_varyings()
glsl_type::get_interface_instance(this->per_vertex_fields,
this->num_per_vertex_fields,
GLSL_INTERFACE_PACKING_STD140,
- "gl_in");
+ "gl_PerVertex");
ir_variable *var = add_variable("gl_in", array(per_vertex_type, 0),
ir_var_shader_in, -1);
var->init_interface_type(per_vertex_type);