Subtitute texture*EXT functions emitted in WebGL 2 (#2663)

This commit is contained in:
Christophe Dehais
2021-11-18 13:11:45 -08:00
committed by GitHub
parent 77f36d79cc
commit 5b321e6669
+3
View File
@@ -75,6 +75,9 @@ namespace bgfx { namespace glsl
char* code = const_cast<char*>(optimizedShader);
strReplace(code, "gl_FragDepthEXT", "gl_FragDepth");
strReplace(code, "textureLodEXT", "texture2DLod");
strReplace(code, "textureGradEXT", "texture2DGrad");
strReplace(code, "texture2DLodARB", "texture2DLod");
strReplace(code, "texture2DLodEXT", "texture2DLod");
strReplace(code, "texture2DGradARB", "texture2DGrad");