diff options
author | Eric Anholt <[email protected]> | 2010-12-02 08:52:58 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-12-02 10:28:51 -0800 |
commit | b381eff1411dea5b9e0c9fbc8641a8760052b2eb (patch) | |
tree | 765365dd671c85ab599cf946573a22b64e8ed1b6 /src/glsl/ir.cpp | |
parent | e3659329e0b91ea78afe32e231f2f75d3d728af9 (diff) |
glsl: Fix flipped return of has_value() for array constants.
Fixes glsl-array-uniform.
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r-- | src/glsl/ir.cpp | 2 |
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; |