Add support for GL_EXT_shadow_samplers
This commit is contained in:
parent
4329d555ad
commit
c6ac40a1a7
4 changed files with 24 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue