From 7408a69952d5b164495d613bcb82669024438699 Mon Sep 17 00:00:00 2001 From: John Kessenich Date: Fri, 7 Jun 2013 19:07:39 +0000 Subject: [PATCH] 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 --- glslang/MachineIndependent/glslang.y | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glslang/MachineIndependent/glslang.y b/glslang/MachineIndependent/glslang.y index 5e077ca8..dcc08d70 100644 --- a/glslang/MachineIndependent/glslang.y +++ b/glslang/MachineIndependent/glslang.y @@ -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(~EEsProfileMask), "variable indexing block array"); $$ = parseContext.intermediate.addIndex(EOpIndexIndirect, $1, $3, $2.line); }