From a69d2ed6068f1f99d2ea1f73a83483a2474882cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Wed, 13 Feb 2019 14:53:13 -0800 Subject: [PATCH] shaderc: Fixed GLSL/ESSL intepolator issue. --- tools/shaderc/shaderc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/shaderc/shaderc.cpp b/tools/shaderc/shaderc.cpp index b696e2f1c..2ba27ea5e 100644 --- a/tools/shaderc/shaderc.cpp +++ b/tools/shaderc/shaderc.cpp @@ -1135,7 +1135,9 @@ namespace bgfx || 0 == bx::strCmp(typen, "noperspective", 13) || 0 == bx::strCmp(typen, "centroid", 8) ) { - if ('f' == _options.shaderType) + if ('f' == _options.shaderType + || 0 != glsl + || 0 != essl) { interpolation = typen; usesInterpolationQualifiers = true;