File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ 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 ) ;
@@ -113,6 +114,7 @@ class PenSkin extends Skin {
113
114
instancedArraysExtension
114
115
) ;
115
116
} else {
117
+ throw new Error ( 'bad' ) ;
116
118
// Inefficient but still supported
117
119
this . instancedRendering = false ;
118
120
}
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