From 5d3babdbdfb2b2fb632450fdd1c4ec093bb3b071 Mon Sep 17 00:00:00 2001
From: John Kessenich <cepheus@frii.com>
Date: Thu, 12 Apr 2018 01:02:46 -0600
Subject: [PATCH] Build: Fix #1347: Compile with NV_EXTENSIONS disabled.

---
 glslang/MachineIndependent/ParseHelper.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/glslang/MachineIndependent/ParseHelper.cpp b/glslang/MachineIndependent/ParseHelper.cpp
index 4ed24fb83..45c050d45 100644
--- a/glslang/MachineIndependent/ParseHelper.cpp
+++ b/glslang/MachineIndependent/ParseHelper.cpp
@@ -3978,6 +3978,7 @@ void TParseContext::finish()
         break;
     }
 
+#ifdef NV_EXTENSIONS
     // Set default outputs for GL_NV_geometry_shader_passthrough
     if (language == EShLangGeometry && extensionTurnedOn(E_SPV_NV_geometry_shader_passthrough)) {
         if (intermediate.getOutputPrimitive() == ElgNone) {
@@ -3997,6 +3998,7 @@ void TParseContext::finish()
             }
         }
     }
+#endif
 }
 
 //
-- 
GitLab