GLSL: Fix #1229: merge array sizes in parameter declarations.
This commit is contained in:
parent
98e733cb58
commit
b3f9e0a334
5 changed files with 30 additions and 5 deletions
|
|
@ -902,9 +902,9 @@ parameter_declarator
|
|||
parseContext.arraySizeRequiredCheck($3.loc, *$3.arraySizes);
|
||||
parseContext.reservedErrorCheck($2.loc, *$2.string);
|
||||
|
||||
$1.arraySizes = $3.arraySizes;
|
||||
|
||||
TParameter param = { $2.string, new TType($1)};
|
||||
parseContext.arrayDimMerge(*param.type, $3.arraySizes);
|
||||
|
||||
$$.loc = $2.loc;
|
||||
$$.param = param;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue