Fix compatibility with spirv-cross SDK 1.3.236
authorTimo Röhling <roehling@debian.org>
Fri, 27 Jan 2023 23:24:04 +0000 (00:24 +0100)
committerTimo Röhling <roehling@debian.org>
Sun, 28 Jan 2024 14:11:07 +0000 (15:11 +0100)
Gbp-Pq: Name 0018-Fix-compatibility-with-spirv-cross-SDK-1.3.236.patch

libs/filamat/src/GLSLPostProcessor.cpp

index 678f06966f8c6d7893c2ee59e885a74858a61f0e..c774bd9614b01a336deedd885c33220822a6ba42 100644 (file)
@@ -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
             }
         }