commit | e8f5ebf313da3ce33ccbbcf9b72946853035fbdd | [log] [tgz] |
---|---|---|
author | Eric Anholt <eric@anholt.net> | Fri Nov 05 06:08:45 2010 -0700 |
committer | Eric Anholt <eric@anholt.net> | Mon Nov 29 17:08:27 2010 -0800 |
tree | 8709b84f862b9919410d82b4a384403e4dfa9c2c | |
parent | 2927b6c21202fd0f9a661665e0093e7193c5df6e [diff] [blame] |
glsl: Make the symbol table's add_function just use the function's name.
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 616ec78..7aa9406 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp
@@ -546,7 +546,7 @@ 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); }