From b381eff1411dea5b9e0c9fbc8641a8760052b2eb Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 2 Dec 2010 08:52:58 -0800 Subject: [PATCH] glsl: Fix flipped return of has_value() for array constants. Fixes glsl-array-uniform. --- src/glsl/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2