mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
glsl: Use the without_array predicate
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
5000a5f67b
commit
9acb011a3e
1 changed files with 2 additions and 5 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue