[qfcc] Update glsl function declaration handling

Finally back to where I was before discovering that arrays with computed
counts didn't work.
This commit is contained in:
Bill Currie 2025-01-03 21:58:33 +09:00
parent ea3198e8fe
commit 9aea4d4b61

View file

@ -332,6 +332,7 @@ function_definition
auto spec = $1;
spec.sym->params = spec.params;
spec.is_overload = true;
spec.type = find_type (parse_params (spec.type, spec.params));
spec.sym = function_symbol (spec, ctx);
current_func = begin_function (spec, nullptr, current_symtab, ctx);
current_symtab = current_func->locals;