glsl: Use the without_array predicate to simplify some code
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> [v1] Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user