From 22d3ef2df1f4fd6c4a0aaf17996fdcd9b70547cb Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Tue, 24 Sep 2013 14:30:29 -0700 Subject: glsl: Make accessor functions for ir_variable::interface_type. In a future patch, this will allow us to enforce invariants when the interface type is updated. Reviewed-by: Jordan Justen --- src/glsl/builtin_variables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/glsl/builtin_variables.cpp') diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp index e2f69fa..7a64acc 100644 --- a/src/glsl/builtin_variables.cpp +++ b/src/glsl/builtin_variables.cpp @@ -831,7 +831,7 @@ builtin_variable_generator::generate_varyings() "gl_in"); ir_variable *var = add_variable("gl_in", array(per_vertex_type, 0), ir_var_shader_in, 0); - var->interface_type = per_vertex_type; + var->init_interface_type(per_vertex_type); } } -- cgit v1.1