Front-end: Fix issue #409, check for implicitly-sized binding arrays.

This commit is contained in:
John Kessenich 2016-07-27 14:43:01 -06:00
parent e15509e450
commit 414f735443
5 changed files with 15 additions and 5 deletions

View file

@ -651,7 +651,7 @@ int TIntermediate::addUsedLocation(const TQualifier& qualifier, const TType& typ
int size;
if (qualifier.isUniformOrBuffer()) {
if (type.isArray())
if (type.isExplicitlySizedArray())
size = type.getCumulativeArraySize();
else
size = 1;