Skip to content

Commit

Permalink
import_prototypes: do not put all cloned params into global builtin pool
Browse files Browse the repository at this point in the history
fixes performance problem when many shaders are parsed
  • Loading branch information
aras-p committed Aug 4, 2010
1 parent 46a1b87 commit cb5b9ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/glsl/ir_import_prototypes.cpp
Expand Up @@ -96,6 +96,7 @@ class import_prototype_visitor : public ir_hierarchical_visitor {
assert(const_cast<ir_variable *>(param)->as_variable() != NULL);

ir_variable *const param_copy = param->clone(NULL);
talloc_steal(copy, param_copy);
copy->parameters.push_tail(param_copy);
}

Expand Down

0 comments on commit cb5b9ad

Please sign in to comment.