Add support for GL_NV_shader_noperspective_interpolation
This commit is contained in:
parent
845860d565
commit
017a567be1
11 changed files with 1118 additions and 1073 deletions
|
|
@ -962,7 +962,7 @@ int TScanContext::tokenizeIdentifier()
|
|||
case PATCH:
|
||||
if (parseContext.symbolTable.atBuiltInLevel() ||
|
||||
(parseContext.profile == EEsProfile &&
|
||||
(parseContext.version >= 320 ||
|
||||
(parseContext.version >= 320 ||
|
||||
parseContext.extensionsTurnedOn(Num_AEP_tessellation_shader, AEP_tessellation_shader))) ||
|
||||
(parseContext.profile != EEsProfile && parseContext.extensionTurnedOn(E_GL_ARB_tessellation_shader)))
|
||||
return keyword;
|
||||
|
|
@ -1450,6 +1450,11 @@ int TScanContext::tokenizeIdentifier()
|
|||
#endif
|
||||
|
||||
case NOPERSPECTIVE:
|
||||
#ifdef NV_EXTENSIONS
|
||||
if (parseContext.profile == EEsProfile && parseContext.version >= 300 &&
|
||||
parseContext.extensionTurnedOn(E_GL_NV_shader_noperspective_interpolation))
|
||||
return keyword;
|
||||
#endif
|
||||
return es30ReservedFromGLSL(130);
|
||||
|
||||
case SMOOTH:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue