iface_var->type = var.type;
iface_var->type_declaration = var.type_declaration;
iface_var->name = name;
- iface_var->array = (var.array || (stage->type==GEOMETRY && iface=="in"));
- iface_var->array_size = var.array_size;
+ if(stage->type==GEOMETRY)
+ iface_var->array = ((var.array && var.interface!="in") || iface=="in");
+ else
+ iface_var->array = var.array;
+ if(iface_var->array)
+ iface_var->array_size = var.array_size;
if(iface=="in")
iface_var->linked_declaration = &var;
iface_declarations[name] = iface_var;