glsl: replace while loop with 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:46:44 -10:00
parent f00c5f85b8
commit ca9e280d89

View File

@@ -3532,9 +3532,7 @@ ast_declarator_list::hir(exec_list *instructions,
* vectors. Vertex shader inputs cannot be arrays or
* structures."
*/
const glsl_type *check_type = var->type;
while (check_type->is_array())
check_type = check_type->element_type();
const glsl_type *check_type = var->type->without_array();
switch (check_type->base_type) {
case GLSL_TYPE_FLOAT: