glsl: add arrays of arrays support to without_array function

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
Timothy Arceri
2014-08-18 21:40:50 -10:00
parent 9ea38ee96d
commit fda5f7bb2f

View File

@@ -540,7 +540,12 @@ struct glsl_type {
*/
const glsl_type *without_array() const
{
return this->is_array() ? this->fields.array : this;
const glsl_type *t = this;
while (t->is_array())
t = t->fields.array;
return t;
}
/**