summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-12-02 08:52:58 -0800
committerEric Anholt <[email protected]>2010-12-02 10:28:51 -0800
commitb381eff1411dea5b9e0c9fbc8641a8760052b2eb (patch)
tree765365dd671c85ab599cf946573a22b64e8ed1b6 /src/glsl
parente3659329e0b91ea78afe32e231f2f75d3d728af9 (diff)
glsl: Fix flipped return of has_value() for array constants.
Fixes glsl-array-uniform.
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/ir.cpp2
1 files changed, 1 insertions, 1 deletions
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;