Legacy GL_ARB_shader_texture_lod support.

This commit is contained in:
Lubos Lenco 2016-11-21 22:37:20 +01:00
parent 7630d3cc9c
commit 0028b4f278

View File

@ -2128,8 +2128,13 @@ string CompilerGLSL::legacy_tex_op(const std::string &op, const SPIRType &imgtyp
break;
}
if (is_legacy_es() && (op == "textureLod" || op == "textureProjLod"))
require_extension("GL_EXT_shader_texture_lod");
if (op == "textureLod" || op == "textureProjLod")
{
if (is_legacy_es())
require_extension("GL_EXT_shader_texture_lod");
else if (is_legacy())
require_extension("GL_ARB_shader_texture_lod");
}
if (op == "texture")
return join("texture", type);