projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a41626
)
glsl2: initialize is_array and array_size of ast_parameter_declarator
author
Aras Pranckevicius
<aras@unity3d.com>
Mon, 2 Aug 2010 07:22:26 +0000
(10:22 +0300)
committer
Eric Anholt
<eric@anholt.net>
Mon, 2 Aug 2010 17:59:42 +0000
(10:59 -0700)
The non-array path of glsl_parser.ypp wasn't setting is_array to false.
src/glsl/ast.h
patch
|
blob
|
history
diff --git
a/src/glsl/ast.h
b/src/glsl/ast.h
index 655054ff6fae404e6645091ecf3eb658bcffb8aa..aa769da3f6579fb9bd35e6a13e44c0026d96282a 100644
(file)
--- 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,