summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-07-02 15:02:57 -0700
committerKenneth Graunke <[email protected]>2010-07-02 18:03:58 -0700
commit2070f9f5bec99e7b91309060984431aa7ea32c00 (patch)
tree3f23d8c98260e0a54e84bf126dee80ce42e86f4c /src/glsl
parente2a358348b143a163c065d82c7375e6a94e98f2a (diff)
glsl2: Fix for dead strings being stored in the symbol table.
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/ir_reader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/ir_reader.cpp b/src/glsl/ir_reader.cpp
index 5ba76e29ea0..80dbc086457 100644
--- a/src/glsl/ir_reader.cpp
+++ b/src/glsl/ir_reader.cpp
@@ -206,7 +206,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());
- bool added = st->symbols->add_function(name->value(), f);
+ bool added = st->symbols->add_function(f->name, f);
assert(added);
}
@@ -439,7 +439,7 @@ read_declaration(_mesa_glsl_parse_state *st, s_list *list)
}
// Add the variable to the symbol table
- st->symbols->add_variable(var_name->value(), var);
+ st->symbols->add_variable(var->name, var);
return var;
}