diff --git a/src/compiler/glsl/ir.cpp b/src/compiler/glsl/ir.cpp index 99e084593bd..c8cb1ee249b 100644 --- a/src/compiler/glsl/ir.cpp +++ b/src/compiler/glsl/ir.cpp @@ -162,11 +162,10 @@ ir_assignment::ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, assert(util_bitcount(write_mask) == this->rhs->type->vector_elements); } -ir_assignment::ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs, - ir_rvalue *condition) +ir_assignment::ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs) : ir_instruction(ir_type_assignment) { - this->condition = condition; + this->condition = NULL; this->rhs = rhs; /* If the RHS is a vector type, assume that all components of the vector diff --git a/src/compiler/glsl/ir.h b/src/compiler/glsl/ir.h index 744e0fe6f74..4ec62db8074 100644 --- a/src/compiler/glsl/ir.h +++ b/src/compiler/glsl/ir.h @@ -1463,7 +1463,7 @@ public: class ir_assignment : public ir_instruction { public: - ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs, ir_rvalue *condition = NULL); + ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs); /** * Construct an assignment with an explicit write mask