mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
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:
parent
f00c5f85b8
commit
ca9e280d89
1 changed files with 1 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue