shaderc: Fixed GLSL/ESSL intepolator issue.

This commit is contained in:
Бранимир Караџић 2019-02-13 14:53:13 -08:00
parent f6624f4d12
commit a69d2ed606

View File

@ -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;