Correct which versions can support the extensions GL_ARB_separate_shader_objects and GL_ARB_shading_language_420pack. They'd only gone back to 150, rather than 130/140.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@25314 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2014-02-12 05:15:49 +00:00
parent 4094630ca3
commit 782aa830b6
10 changed files with 110 additions and 36 deletions

View file

@ -647,6 +647,12 @@ int TScanContext::tokenizeIdentifier()
return keyword;
case LAYOUT:
if ((parseContext.profile == EEsProfile && parseContext.version < 300) ||
(parseContext.profile != EEsProfile && parseContext.version < 140 &&
! parseContext.extensionsTurnedOn(1, &GL_ARB_shading_language_420pack)))
return identifierOrType();
return keyword;
case SHARED:
if ((parseContext.profile == EEsProfile && parseContext.version < 300) ||
(parseContext.profile != EEsProfile && parseContext.version < 140))