File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ class PenSkin extends Skin {
113
113
instancedArraysExtension
114
114
) ;
115
115
} else {
116
+ // Inefficient but still supported
116
117
this . instancedRendering = false ;
117
118
}
118
119
}
@@ -390,13 +391,13 @@ class PenSkin extends Skin {
390
391
this . attribute_index ++ ;
391
392
this . attribute_data [ this . attribute_index ] = penColor [ 3 ] ;
392
393
this . attribute_index ++ ;
393
-
394
+
394
395
this . attribute_data [ this . attribute_index ] = lineThickness ;
395
396
this . attribute_index ++ ;
396
-
397
+
397
398
this . attribute_data [ this . attribute_index ] = lineLength ;
398
399
this . attribute_index ++ ;
399
-
400
+
400
401
this . attribute_data [ this . attribute_index ] = x0 ;
401
402
this . attribute_index ++ ;
402
403
this . attribute_data [ this . attribute_index ] = - y0 ;
@@ -440,13 +441,13 @@ class PenSkin extends Skin {
440
441
this . glVertexAttribDivisor ( this . a_lineColor_loc , 1 ) ;
441
442
this . glVertexAttribDivisor ( this . a_lineThicknessAndLength_loc , 1 ) ;
442
443
this . glVertexAttribDivisor ( this . a_penPoints_loc , 1 ) ;
443
-
444
+
444
445
this . glDrawArraysInstanced (
445
446
gl . TRIANGLES ,
446
447
0 , 6 ,
447
448
this . attribute_index / PEN_ATTRIBUTE_STRIDE
448
449
) ;
449
-
450
+
450
451
this . glVertexAttribDivisor ( this . a_lineColor_loc , 0 ) ;
451
452
this . glVertexAttribDivisor ( this . a_lineThicknessAndLength_loc , 0 ) ;
452
453
this . glVertexAttribDivisor ( this . a_penPoints_loc , 0 ) ;
You can’t perform that action at this time.
0 commit comments