diff --git a/src/glsl/loop_analysis.h b/src/glsl/loop_analysis.h index 295dc79..165214d 100644 --- a/src/glsl/loop_analysis.h +++ b/src/glsl/loop_analysis.h @@ -207,8 +207,7 @@ public: const bool is_const = (this->num_assignments == 0) || ((this->num_assignments == 1) && !this->conditional_or_nested_assignment - && !this->read_before_write - && this->rhs_clean); + && !this->read_before_write); /* If the RHS of *the* assignment is clean, then there must be exactly * one assignment of the variable.