Fix cut and paste error
authorGreg Fischer <greg@lunarg.com>
Thu, 17 Dec 2020 22:35:41 +0000 (15:35 -0700)
committerGreg Fischer <greg@lunarg.com>
Fri, 18 Dec 2020 05:57:50 +0000 (22:57 -0700)
Fixes #2476

glslang/HLSL/hlslParseHelper.cpp

index abe0f34..fce647a 100644 (file)
@@ -9869,7 +9869,7 @@ void HlslParseContext::addPatchConstantInvocation()
                 } else {
                     // Use the original declaration type for the linkage
                     paramType->getQualifier().builtIn = biType;
-                    if (biType == EbvTessLevelInner || biType == EbvTessLevelInner)
+                    if (biType == EbvTessLevelInner || biType == EbvTessLevelOuter)
                         paramType->getQualifier().patch = true;
 
                     if (notInEntryPoint.count(tInterstageIoData(biType, storage)) == 1)