diff options
author | Aras Pranckevicius <[email protected]> | 2010-08-02 10:22:26 +0300 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-08-02 10:59:42 -0700 |
commit | b35703df107b50b2c3f5cd4d56790921e8106324 (patch) | |
tree | 7863a4bda58590ec201ee61b87a24fa8bdf84077 /src/glsl | |
parent | 6a41626e90f75318e17d9907f4f57a8c3c315fea (diff) |
glsl2: initialize is_array and array_size of ast_parameter_declarator
The non-array path of glsl_parser.ypp wasn't setting is_array to false.
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/ast.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/ast.h b/src/glsl/ast.h index 655054ff6fa..aa769da3f65 100644 --- a/src/glsl/ast.h +++ b/src/glsl/ast.h @@ -455,6 +455,12 @@ public: class ast_parameter_declarator : public ast_node { public: + ast_parameter_declarator() + { + this->is_array = false; + this->array_size = 0; + } + virtual void print(void) const; virtual ir_rvalue *hir(exec_list *instructions, |