glsl: Make the symbol table's add_function just use the function's name.

This commit is contained in:
Eric Anholt
2010-11-05 06:08:45 -07:00
parent 2927b6c212
commit e8f5ebf313
6 changed files with 9 additions and 9 deletions

View File

@@ -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);
}