glsl2: Don't forget to walk the parameters to a function in the hv.
Fixes segfaults from use after free after the steal of ir nodes and free of the compile context.
This commit is contained in:
@@ -116,6 +116,10 @@ ir_function_signature::accept(ir_hierarchical_visitor *v)
|
||||
if (s != visit_continue)
|
||||
return (s == visit_continue_with_parent) ? visit_continue : s;
|
||||
|
||||
s = visit_list_elements(v, &this->parameters);
|
||||
if (s == visit_stop)
|
||||
return s;
|
||||
|
||||
s = visit_list_elements(v, &this->body);
|
||||
return (s == visit_stop) ? s : v->visit_leave(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user