Hi everyone,
I want to create a webl2 canvas. I create my canvas doing something similar to emscripten/tests/test_egl.c I pass the linker flag -s USE_WEBGL2=1
I create a context setting the attributes like this to create a webgl version 1
EGLint contextAttribs[] = |
| { |
| EGL_CONTEXT_CLIENT_VERSION, 2, |
| EGL_NONE |
| };
|
I would assume that I would change to this EGL_CONTEXT_CLIENT_VERSION, 3 ?
I would like to create a webgl 1 canvas since some platforms do not support WebGL.
What is the correct way to do this?
Thanks,
Brian Gavin