GLSL: Fix #1193: no 'location' on uniform/buffer block.
This commit is contained in:
parent
a0d60f2bea
commit
e1ff231235
6 changed files with 25 additions and 7 deletions
|
|
@ -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", "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue