glsl: Make the symbol table's add_function just use the function's name.
This commit is contained in:
parent
2927b6c212
commit
e8f5ebf313
6 changed files with 9 additions and 9 deletions
|
|
@ -221,7 +221,7 @@ read_function(_mesa_glsl_parse_state *st, s_list *list, bool skip_body)
|
|||
ir_function *f = st->symbols->get_function(name->value());
|
||||
if (f == NULL) {
|
||||
f = new(ctx) ir_function(name->value());
|
||||
added = st->symbols->add_function(f->name, f);
|
||||
added = st->symbols->add_function(f);
|
||||
assert(added);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue