glsl: Make the symbol table's add_function just use the function's name.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user