summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast_to_hir.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-08-25 17:10:16 -0700
committerIan Romanick <[email protected]>2010-08-26 09:19:48 -0700
commitac2376e6f51677ab321930b0200a79d1683cfbba (patch)
tree2894ed6e3488c17cf8b0a511fc01c50aa3a04856 /src/glsl/ast_to_hir.cpp
parente09591317b2470fe9c104606577d4e10255727c0 (diff)
glsl: Don't add overloads to existing structure constructors.
Instead, make a new ir_function and try to add it to the symbol table. Fixes piglit test redeclaration-08.vert.
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
-rw-r--r--src/glsl/ast_to_hir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index 8caf950c2d2..c666da300b7 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -2172,7 +2172,7 @@ ast_function::hir(exec_list *instructions,
* seen signature for a function with the same name, or, if a match is found,
* that the previously seen signature does not have an associated definition.
*/
- f = state->symbols->get_function(name);
+ f = state->symbols->get_function(name, false);
if (f != NULL) {
sig = f->exact_matching_signature(&hir_parameters);
if (sig != NULL) {