diff options
author | Paul Berry <[email protected]> | 2011-08-18 21:37:31 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2011-09-23 13:28:00 -0700 |
commit | cc81eb09b928389f926b3512c18b3298777d2928 (patch) | |
tree | 8e9c7047d6d18eb740b2e512894d3c8898ff3bcf /src/glsl/ir_reader.cpp | |
parent | deff7fff494a04314fe9ad859029f0436bcc9e9f (diff) |
glsl hierarchical visitor: Do not overwrite base_ir for parameter lists.
This patch fixes a bug in ir_hirearchical_visitor: when traversing an
exec_list representing the formal or actual parameters of a function,
it modified base_ir to point to each parameter in turn, rather than
leaving it as a pointer to the enclosing statement. This was a
problem, since base_ir is used by visitor classes to locate the
statement containing the node being visited (usually so that
additional statements can be inserted before or after it). Without
this fix, visitors might attempt to insert statements into parameter
lists.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/ir_reader.cpp')
0 files changed, 0 insertions, 0 deletions