Merge pull request #1246 from amdrexu/bugfix

Fix an issue of interpolateAtVertexAMD().
This commit is contained in:
John Kessenich 2018-02-15 11:18:22 -07:00 committed by GitHub
commit 98e3fb1926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1585,6 +1585,9 @@ void TParseContext::builtInOpCheck(const TSourceLoc& loc, const TFunction& fnCan
case EOpInterpolateAtCentroid:
case EOpInterpolateAtSample:
case EOpInterpolateAtOffset:
#ifdef AMD_EXTENSIONS
case EOpInterpolateAtVertex:
#endif
// Make sure the first argument is an interpolant, or an array element of an interpolant
if (arg0->getType().getQualifier().storage != EvqVaryingIn) {
// It might still be an array element.