Legacy GL_ARB_shader_texture_lod support.
This commit is contained in:
parent
7630d3cc9c
commit
0028b4f278
@ -2128,8 +2128,13 @@ string CompilerGLSL::legacy_tex_op(const std::string &op, const SPIRType &imgtyp
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_legacy_es() && (op == "textureLod" || op == "textureProjLod"))
|
if (op == "textureLod" || op == "textureProjLod")
|
||||||
require_extension("GL_EXT_shader_texture_lod");
|
{
|
||||||
|
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")
|
if (op == "texture")
|
||||||
return join("texture", type);
|
return join("texture", type);
|
||||||
|
Loading…
Reference in New Issue
Block a user