projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
glsl: Add copy-constructor for ast_struct_specifier.
[mesa.git]
/
src
/
glsl
/
ir_hierarchical_visitor.cpp
diff --git
a/src/glsl/ir_hierarchical_visitor.cpp
b/src/glsl/ir_hierarchical_visitor.cpp
index d475df62fce3dddaf35bd8d2809fae5b558a602b..f2441404678981e73109a3f4ecd316948b306e64 100644
(file)
--- a/
src/glsl/ir_hierarchical_visitor.cpp
+++ b/
src/glsl/ir_hierarchical_visitor.cpp
@@
-26,8
+26,19
@@
ir_hierarchical_visitor::ir_hierarchical_visitor()
{
ir_hierarchical_visitor::ir_hierarchical_visitor()
{
+ this->base_ir = NULL;
this->callback = NULL;
this->data = NULL;
this->callback = NULL;
this->data = NULL;
+ this->in_assignee = false;
+}
+
+ir_visitor_status
+ir_hierarchical_visitor::visit(ir_rvalue *ir)
+{
+ if (this->callback != NULL)
+ this->callback(ir, this->data);
+
+ return visit_continue;
}
ir_visitor_status
}
ir_visitor_status