Add semantic check for ES variably indexing a uniform block.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21894 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
3ce5745ade
commit
7408a69952
@ -351,6 +351,8 @@ postfix_expression
|
||||
parseContext.error($2.line, "", "[", "array must be redeclared with a size before being indexed with a variable");
|
||||
parseContext.recover();
|
||||
}
|
||||
if ($1->getBasicType() == EbtBlock)
|
||||
parseContext.requireProfile($1->getLine(), static_cast<EProfileMask>(~EEsProfileMask), "variable indexing block array");
|
||||
|
||||
$$ = parseContext.intermediate.addIndex(EOpIndexIndirect, $1, $3, $2.line);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user