Missing function createVertexArray on context 1.38.32

13 views
Skip to first unread message

J Decker

unread,
May 27, 2019, 6:28:09 PM5/27/19
to emscripten-discuss

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

J Decker

unread,
May 27, 2019, 7:33:05 PM5/27/19
to emscripten-discuss
probably missing -s USE_WEBLGL2=1

--
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 emscripten-disc...@googlegroups.com.
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 all
Reply to author
Forward
0 new messages