HLSL: Don't pin down which tessellation stage must error check input primitive.
authorJohn Kessenich <cepheus@frii.com>
Mon, 26 Jun 2017 23:56:54 +0000 (17:56 -0600)
committerJohn Kessenich <cepheus@frii.com>
Mon, 26 Jun 2017 23:56:54 +0000 (17:56 -0600)
glslang/MachineIndependent/linkValidate.cpp

index 4a91a25..196cdf2 100644 (file)
@@ -459,9 +459,9 @@ void TIntermediate::finalCheck(TInfoSink& infoSink, bool keepUncalled)
             error(infoSink, "At least one shader must specify an output layout(vertices=...)");
         break;
     case EShLangTessEvaluation:
-        if (inputPrimitive == ElgNone)
-            error(infoSink, "At least one shader must specify an input layout primitive");
         if (source == EShSourceGlsl) {
+            if (inputPrimitive == ElgNone)
+                error(infoSink, "At least one shader must specify an input layout primitive");
             if (vertexSpacing == EvsNone)
                 vertexSpacing = EvsEqual;
             if (vertexOrder == EvoNone)