Revert getWebGLContext => getContext change

This change allowed TWGL to create a WebGL 2 context when available and
fall back to WebGL 1 when that's the only option. This should in theory
be harmless, but deserves more extensive testing before rolling it out.
This commit is contained in:
Christopher Willis-Ford 2018-01-11 10:07:42 -08:00
parent 07a6ae57be
commit 7dd707db17

View File

@ -80,7 +80,7 @@ class RenderWebGL extends EventEmitter {
* @private
*/
static _getContext (canvas) {
return twgl.getContext(canvas, {alpha: false, stencil: true});
return twgl.getWebGLContext(canvas, {alpha: false, stencil: true});
}
/**