aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2015-03-12 19:52:47 +1100
committerTimothy Arceri <[email protected]>2015-10-15 21:42:24 +1100
commitd1d05c0f85daf3445d9b4c9cebb3940e6a251fa6 (patch)
treec16639edac32b87745d1d6f835fcadc2443818ff /src/glsl/ir.cpp
parentdd89880dc0924162e751141f9388e5dba089d1c0 (diff)
glsl: add AoA support for linking interface blocks with unsized members
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r--src/glsl/ir.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp
index 4c228437d15..8933b230177 100644
--- a/src/glsl/ir.cpp
+++ b/src/glsl/ir.cpp
@@ -1689,8 +1689,8 @@ ir_variable::ir_variable(const struct glsl_type *type, const char *name,
if (type->is_interface())
this->init_interface_type(type);
- else if (type->is_array() && type->fields.array->is_interface())
- this->init_interface_type(type->fields.array);
+ else if (type->without_array()->is_interface())
+ this->init_interface_type(type->without_array());
}
}