This is the bit of code that creates the webgl context
EMSCRIPTEN_WEBGL_CONTEXT_HANDLE hGL;
EmscriptenWebGLContextAttributes attribs = {};
emscripten_webgl_init_context_attributes( & attribs );
attribs.antialias = false; // not default
attribs.failIfMajorPerformanceCaveat = false; // allow slow fallback paths
attribs.majorVersion = 2;
attribs.minorVersion = 0; // 1.0 webgl.; ther eis 2.0 but ....
hGL = emscripten_webgl_create_context(display, &attribs );
Uncaught TypeError: GLctx[createFunction] is not a function
at __glGenObject (x.js:8445)
at _glGenVertexArrays (x.js:8466)
at _InitSuperSimpleShader (:8087/wasm-function[2647]:72)
at _GetShaderInit (:8087/wasm-function[2524]:709)
function _glGenVertexArrays(n, arrays) {
__glGenObject(n, arrays, 'createVertexArray', GL.vaos
);
}