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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user