Merge pull request #1246 from amdrexu/bugfix
Fix an issue of interpolateAtVertexAMD().
This commit is contained in:
commit
98e3fb1926
@ -1585,6 +1585,9 @@ void TParseContext::builtInOpCheck(const TSourceLoc& loc, const TFunction& fnCan
|
|||||||
case EOpInterpolateAtCentroid:
|
case EOpInterpolateAtCentroid:
|
||||||
case EOpInterpolateAtSample:
|
case EOpInterpolateAtSample:
|
||||||
case EOpInterpolateAtOffset:
|
case EOpInterpolateAtOffset:
|
||||||
|
#ifdef AMD_EXTENSIONS
|
||||||
|
case EOpInterpolateAtVertex:
|
||||||
|
#endif
|
||||||
// Make sure the first argument is an interpolant, or an array element of an interpolant
|
// Make sure the first argument is an interpolant, or an array element of an interpolant
|
||||||
if (arg0->getType().getQualifier().storage != EvqVaryingIn) {
|
if (arg0->getType().getQualifier().storage != EvqVaryingIn) {
|
||||||
// It might still be an array element.
|
// It might still be an array element.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user