From: Eric Anholt Date: Thu, 2 Dec 2010 16:52:58 +0000 (-0800) Subject: glsl: Fix flipped return of has_value() for array constants. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b381eff1411dea5b9e0c9fbc8641a8760052b2eb;p=mesa.git glsl: Fix flipped return of has_value() for array constants. Fixes glsl-array-uniform. --- diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index 31b90bf021c..b8b0fed9d1c 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -778,7 +778,7 @@ ir_constant::has_value(const ir_constant *c) const if (this->type->is_array()) { for (unsigned i = 0; i < this->type->length; i++) { - if (this->array_elements[i]->has_value(c->array_elements[i])) + if (!this->array_elements[i]->has_value(c->array_elements[i])) return false; } return true;