mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 23:40:10 +01:00
glsl: Initialize parse-state in constructor of lower_subroutine.
Static analysis tools don't like partial object initializations. Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
This commit is contained in:
parent
b15aba940a
commit
616355160d
1 changed files with 3 additions and 3 deletions
|
|
@ -37,7 +37,8 @@ namespace {
|
|||
|
||||
class lower_subroutine_visitor : public ir_hierarchical_visitor {
|
||||
public:
|
||||
lower_subroutine_visitor()
|
||||
lower_subroutine_visitor(struct _mesa_glsl_parse_state *state)
|
||||
: state(state)
|
||||
{
|
||||
this->progress = false;
|
||||
}
|
||||
|
|
@ -52,8 +53,7 @@ public:
|
|||
bool
|
||||
lower_subroutine(exec_list *instructions, struct _mesa_glsl_parse_state *state)
|
||||
{
|
||||
lower_subroutine_visitor v;
|
||||
v.state = state;
|
||||
lower_subroutine_visitor v(state);
|
||||
visit_list_elements(&v, instructions);
|
||||
return v.progress;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue