From eebb40d30d77ad5c1293f9165a847526adeb4a71 Mon Sep 17 00:00:00 2001 From: Antonio Maiorano Date: Tue, 14 Nov 2023 18:23:39 -0500 Subject: [PATCH] Add missing include for latest glslang (#7365) This change in glslang removes the include of "intermediate.h" from GlslangToSpv.h: https://github.com/KhronosGroup/glslang/commit/62de186c3383feef067feb6ea578f79977910722 As a result, the definition of "class TIntermediate" is removed, and will fail compilation of MaterialCompiler.cpp when glslang is updated to a version including the aforementioned change. We fix this by adding an explicit include to this header in MaterialCompiler.cpp. Co-authored-by: Powei Feng --- tools/matc/src/matc/MaterialCompiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/matc/src/matc/MaterialCompiler.cpp b/tools/matc/src/matc/MaterialCompiler.cpp index 2785a73343..d9920d4c05 100644 --- a/tools/matc/src/matc/MaterialCompiler.cpp +++ b/tools/matc/src/matc/MaterialCompiler.cpp @@ -34,6 +34,7 @@ #include "ParametersProcessor.h" #include +#include "glslang/Include/intermediate.h" #include "sca/builtinResource.h"