Remove too aggressive and redundant lexical keyword check: attribute and varying can always be error checked in the grammar.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21443 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2013-05-07 23:48:06 +00:00
parent 52ac67e913
commit 61f205ecd8
2 changed files with 4 additions and 16 deletions

View file

@ -1724,8 +1724,8 @@ storage_qualifier
}
| ATTRIBUTE {
parseContext.requireStage($1.line, EShLangVertexMask, "attribute");
parseContext.checkDeprecated($1.line, ECoreProfile, 150, "attribute");
parseContext.checkDeprecated($1.line, ENoProfile, 140, "attribute");
parseContext.checkDeprecated($1.line, ECoreProfile, 130, "attribute");
parseContext.checkDeprecated($1.line, ENoProfile, 130, "attribute");
parseContext.requireNotRemoved($1.line, ECoreProfile, 420, "attribute");
parseContext.requireNotRemoved($1.line, EEsProfile, 300, "attribute");
@ -1736,8 +1736,8 @@ storage_qualifier
$$.qualifier.storage = EvqVaryingIn;
}
| VARYING {
parseContext.checkDeprecated($1.line, ENoProfile, 140, "varying");
parseContext.checkDeprecated($1.line, ECoreProfile, 150, "varying");
parseContext.checkDeprecated($1.line, ENoProfile, 130, "varying");
parseContext.checkDeprecated($1.line, ECoreProfile, 130, "varying");
parseContext.requireNotRemoved($1.line, ECoreProfile, 420, "varying");
parseContext.requireNotRemoved($1.line, EEsProfile, 300, "varying");