Module: Mesa
Branch: glsl2
Commit: b35703df107b50b2c3f5cd4d56790921e8106324
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b35703df107b50b2c3f5cd4d56790921e8106324

Author: Aras Pranckevicius <[email protected]>
Date:   Mon Aug  2 10:22:26 2010 +0300

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.

---

 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 655054f..aa769da 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,

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to