summaryrefslogtreecommitdiffstats
path: root/src/glsl/linker.cpp
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-11-05 06:08:45 -0700
committerEric Anholt <[email protected]>2010-11-29 17:08:27 -0800
commite8f5ebf313da3ce33ccbbcf9b72946853035fbdd (patch)
tree8709b84f862b9919410d82b4a384403e4dfa9c2c /src/glsl/linker.cpp
parent2927b6c21202fd0f9a661665e0093e7193c5df6e (diff)
glsl: Make the symbol table's add_function just use the function's name.
Diffstat (limited to 'src/glsl/linker.cpp')
-rw-r--r--src/glsl/linker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index 616ec780071..7aa94064d68 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -546,7 +546,7 @@ populate_symbol_table(gl_shader *sh)
ir_function *func;
if ((func = inst->as_function()) != NULL) {
- sh->symbols->add_function(func->name, func);
+ sh->symbols->add_function(func);
} else if ((var = inst->as_variable()) != NULL) {
sh->symbols->add_variable(var->name, var);
}