GLSL: Fix #1193: no 'location' on uniform/buffer block.

This commit is contained in:
John Kessenich 2017-12-16 10:07:22 -07:00
parent a0d60f2bea
commit e1ff231235
6 changed files with 25 additions and 7 deletions

View file

@ -4569,6 +4569,8 @@ void TParseContext::layoutTypeCheck(const TSourceLoc& loc, const TType& type)
break;
case EvqUniform:
case EvqBuffer:
if (type.getBasicType() == EbtBlock)
error(loc, "cannot apply to uniform or buffer block", "location", "");
break;
default:
error(loc, "can only apply to uniform, buffer, in, or out storage qualifiers", "location", "");