diff options
author | Timothy Arceri <[email protected]> | 2015-02-19 21:32:21 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2015-02-20 16:11:15 +1100 |
commit | 9acb011a3e73676ada04df01832c930acf51a9a2 (patch) | |
tree | 912f02ca582712c90ad1819a5f1e134bfd85a932 /src/glsl/ir.h | |
parent | 5000a5f67b556096b6ba1e9bdac3a6e5cd5a1f68 (diff) |
glsl: Use the without_array predicate
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r-- | src/glsl/ir.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h index ce35b2bf213..25f2ecada0f 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -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. |