From 6305caea521fb2c7f82100db490f03d279185c43 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Sat, 19 Jul 2014 14:41:04 -0700 Subject: glsl: Use the without_array predicate to simplify some code Signed-off-by: Ian Romanick Reviewed-by: Matt Turner [v1] Reviewed-by: Timothy Arceri --- src/glsl/link_varyings.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/glsl/link_varyings.cpp') diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index a3fc2ae3489..1438a4b16c2 100644 --- a/src/glsl/link_varyings.cpp +++ b/src/glsl/link_varyings.cpp @@ -1068,10 +1068,8 @@ private: virtual void visit_field(const glsl_type *type, const char *name, bool row_major) { - assert(!type->is_record()); - assert(!(type->is_array() && type->fields.array->is_record())); - assert(!type->is_interface()); - assert(!(type->is_array() && type->fields.array->is_interface())); + assert(!type->without_array()->is_record()); + assert(!type->without_array()->is_interface()); (void) row_major; -- cgit v1.2.3