File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -97,14 +97,15 @@ class PenSkin extends Skin {
97
97
this . a_penPoints_loc = gl . getAttribLocation ( this . _lineShader . program , 'a_penPoints' ) ;
98
98
99
99
if ( gl . drawArraysInstanced ) {
100
+ throw new Error ( 'bad' ) ;
100
101
// WebGL2 has native instanced rendering
101
102
this . instancedRendering = true ;
102
103
this . glDrawArraysInstanced = gl . drawArraysInstanced . bind ( gl ) ;
103
104
this . glVertexAttribDivisor = gl . vertexAttribDivisor . bind ( gl ) ;
104
105
} else {
105
106
// WebGL1 may have instanced rendering through the ANGLE_instanced_arrays extension
106
107
const instancedArraysExtension = gl . getExtension ( 'ANGLE_instanced_arrays' ) ;
107
- if ( instancedArraysExtension ) {
108
+ if ( false && instancedArraysExtension ) {
108
109
this . instancedRendering = true ;
109
110
this . glDrawArraysInstanced = instancedArraysExtension . drawElementsInstancedANGLE . bind (
110
111
instancedArraysExtension
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ class RenderWebGL extends EventEmitter {
148
148
antialias : false ,
149
149
powerPreference : RenderWebGL . powerPreference
150
150
} ;
151
- return twgl . getContext ( canvas , contextAttribs ) ;
151
+ return canvas . getContext ( 'webgl' , contextAttribs ) ;
152
152
}
153
153
154
154
/**
You can’t perform that action at this time.
0 commit comments