Use new WebGL context setup API in emscripten