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

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/136a6b1a-893d-4e58-a429-1dd0e4ee94e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to