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

This commit is contained in:
Christophe Dehais 2021-11-18 22:11:45 +01:00 committed by GitHub
parent 77f36d79cc
commit 5b321e6669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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");