mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Subtitute texture*EXT functions emitted in WebGL 2 (#2663)
This commit is contained in:
committed by
GitHub
parent
77f36d79cc
commit
5b321e6669
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user