Skip to content

Commit c3859db

Browse files
committed
fb
1 parent 3e3d0c5 commit c3859db

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/PenSkin.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,15 @@ class PenSkin extends Skin {
9797
this.a_penPoints_loc = gl.getAttribLocation(this._lineShader.program, 'a_penPoints');
9898

9999
if (gl.drawArraysInstanced) {
100+
throw new Error('bad');
100101
// WebGL2 has native instanced rendering
101102
this.instancedRendering = true;
102103
this.glDrawArraysInstanced = gl.drawArraysInstanced.bind(gl);
103104
this.glVertexAttribDivisor = gl.vertexAttribDivisor.bind(gl);
104105
} else {
105106
// WebGL1 may have instanced rendering through the ANGLE_instanced_arrays extension
106107
const instancedArraysExtension = gl.getExtension('ANGLE_instanced_arrays');
107-
if (instancedArraysExtension) {
108+
if (false && instancedArraysExtension) {
108109
this.instancedRendering = true;
109110
this.glDrawArraysInstanced = instancedArraysExtension.drawElementsInstancedANGLE.bind(
110111
instancedArraysExtension

src/RenderWebGL.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class RenderWebGL extends EventEmitter {
148148
antialias: false,
149149
powerPreference: RenderWebGL.powerPreference
150150
};
151-
return twgl.getContext(canvas, contextAttribs);
151+
return canvas.getContext('webgl', contextAttribs);
152152
}
153153

154154
/**

0 commit comments

Comments
 (0)