From efe4586fad8eb96b745dc68fc703083614768eb6 Mon Sep 17 00:00:00 2001 From: Greg Fischer Date: Thu, 17 Dec 2020 15:35:41 -0700 Subject: [PATCH] Fix cut and paste error Fixes #2476 --- glslang/HLSL/hlslParseHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glslang/HLSL/hlslParseHelper.cpp b/glslang/HLSL/hlslParseHelper.cpp index abe0f34e6..fce647a56 100644 --- a/glslang/HLSL/hlslParseHelper.cpp +++ b/glslang/HLSL/hlslParseHelper.cpp @@ -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)