From b73d73ba345ec66b43c39bcd7f066e219c83e24f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timo=20R=C3=B6hling?= Date: Sat, 28 Jan 2023 00:24:04 +0100 Subject: [PATCH] Fix compatibility with spirv-cross SDK 1.3.236 Gbp-Pq: Name 0018-Fix-compatibility-with-spirv-cross-SDK-1.3.236.patch --- libs/filamat/src/GLSLPostProcessor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/filamat/src/GLSLPostProcessor.cpp b/libs/filamat/src/GLSLPostProcessor.cpp index 678f069..c774bd9 100644 --- a/libs/filamat/src/GLSLPostProcessor.cpp +++ b/libs/filamat/src/GLSLPostProcessor.cpp @@ -346,7 +346,11 @@ void GLSLPostProcessor::fullOptimization(const TShader& tShader, if (tShader.getStage() == EShLangFragment && glslOptions.es) { for (auto i : config.glsl.subpassInputToColorLocation) { +#if SPV_VERSION >= 0x10600 + glslCompiler.remap_ext_framebuffer_fetch(i.first, i.second, true); +#else glslCompiler.remap_ext_framebuffer_fetch(i.first, i.second); +#endif } } -- 2.30.2