Add support for GL_EXT_shadow_samplers

This commit is contained in:
David Srbecky 2017-06-26 17:43:32 +01:00
parent 4329d555ad
commit c6ac40a1a7
4 changed files with 24 additions and 3 deletions

View file

@ -1113,8 +1113,10 @@ int TScanContext::tokenizeIdentifier()
case SAMPLER2DSHADOW:
afterType = true;
if (parseContext.profile == EEsProfile && parseContext.version < 300)
reservedWord();
if (parseContext.profile == EEsProfile && parseContext.version < 300) {
if (!parseContext.extensionTurnedOn(E_GL_EXT_shadow_samplers))
reservedWord();
}
return keyword;
case SAMPLER2DRECT: