Added better fallbacks for legacy textureProjLod() and textureProjLodOffset() generation

This commit is contained in:
Sidney Just 2018-06-25 02:06:45 -07:00
parent 0f62b5dc1e
commit ceec708b89

View File

@ -3562,7 +3562,7 @@ string CompilerGLSL::legacy_tex_op(const std::string &op, const SPIRType &imgtyp
if (use_explicit_lod)
return join(type_prefix, type, is_legacy_es() ? "ProjLodEXT" : "ProjLod");
else
return join(type_prefix, type);
return join(type_prefix, type, "Proj");
}
else if (op == "textureLodOffset")
{
@ -3578,7 +3578,7 @@ string CompilerGLSL::legacy_tex_op(const std::string &op, const SPIRType &imgtyp
if (use_explicit_lod)
return join(type_prefix, type, "ProjLodOffset");
else
return join(type_prefix, type);
return join(type_prefix, type, "ProjOffset");
}
else
{