glsl: Use the without_array predicate

Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Timothy Arceri
2015-02-19 21:32:21 +11:00
parent 5000a5f67b
commit 9acb011a3e

View File

@@ -450,11 +450,8 @@ public:
*/
inline bool is_interface_instance() const
{
const glsl_type *const t = this->type;
return (t == this->interface_type)
|| (t->is_array() && t->fields.array == this->interface_type);
}
return this->type->without_array() == this->interface_type;
}
/**
* Set this->interface_type on a newly created variable.