diff options
author | Samuel Pitoiset <[email protected]> | 2017-04-21 10:25:42 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-04-21 19:33:32 +0200 |
commit | 0c8898dc34b1b8efc12e7491c303249bd081253d (patch) | |
tree | 371bfadf373c3e3aea4c6d5e97f24a467b171e21 /src/compiler/glsl/link_varyings.cpp | |
parent | 053912382ee2865da24be4bdd4c21de525519460 (diff) |
glsl: make use of glsl_type::is_array()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/compiler/glsl/link_varyings.cpp')
-rw-r--r-- | src/compiler/glsl/link_varyings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/link_varyings.cpp b/src/compiler/glsl/link_varyings.cpp index f0df3d60a5c..e6947692aff 100644 --- a/src/compiler/glsl/link_varyings.cpp +++ b/src/compiler/glsl/link_varyings.cpp @@ -1678,7 +1678,7 @@ varying_matches::compute_packing_order(const ir_variable *var) { const glsl_type *element_type = var->type; - while (element_type->base_type == GLSL_TYPE_ARRAY) { + while (element_type->is_array()) { element_type = element_type->fields.array; } |