So I thought I had to call
gl.getExtension("OES_standard_derivatives") before using the extension in any shader. It turns out that:
nullboth on my OSX and Linux dev platforms
gl.getSupportedExtensions()returns 128 names on my OSX and 379 names on my Linux workstation, and
OES_standard_derivativesis not among them in both cases
#extension GL_OES_standard_derivatives : enablein shader source works without calling
gl.getExtensionsomewhere in Haxe source, i.e. shader compilation passes and it renders stuff just fine
So, my question is:
How do I reliably find out if an extension exists/is supported, using Lime API?
I’m on Haxe 4.0.0-rc2, Lime 7.3.0, and am using
WebGLRenderContext in my Lime app (
gl is of
WebGLRenderContext type ).