From 35a3de748a13038ef220a9a794f3e3c50d64c258 Mon Sep 17 00:00:00 2001 From: Rex Xu Date: Wed, 14 Feb 2018 11:42:34 +0800 Subject: [PATCH] Fix an issue of interpolateAtVertexAMD(). An error message should be reported if the interpolant is not an input. --- glslang/MachineIndependent/ParseHelper.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glslang/MachineIndependent/ParseHelper.cpp b/glslang/MachineIndependent/ParseHelper.cpp index 69f47998..8016e2ea 100644 --- a/glslang/MachineIndependent/ParseHelper.cpp +++ b/glslang/MachineIndependent/ParseHelper.cpp @@ -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.