glsl: Fix flipped return of has_value() for array constants.

Fixes glsl-array-uniform.
This commit is contained in:
Eric Anholt
2010-12-02 08:52:58 -08:00
parent e3659329e0
commit b381eff141
+1 -1
View File
@@ -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;