Kaynağa Gözat

shaderc: Fixed GLSL/ESSL intepolator issue.

Бранимир Караџић 6 yıl önce
ebeveyn
işleme
a69d2ed606
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      tools/shaderc/shaderc.cpp

+ 3 - 1
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;