|
@@ -2691,7 +2691,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
} else if ( object instanceof THREE.Line ) {
|
|
|
|
|
|
- var primitives = ( object.type === THREE.LineStrip ) ? _gl.LINE_STRIP : _gl.LINES;
|
|
|
+ var mode = ( object.type === THREE.LineStrip ) ? _gl.LINE_STRIP : _gl.LINES;
|
|
|
|
|
|
setLineWidth( material.linewidth );
|
|
|
|
|
@@ -2773,7 +2773,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
var position = geometryAttributes[ "position" ];
|
|
|
|
|
|
- _gl.drawArrays( primitives, 0, position.array.length / 3 );
|
|
|
+ _gl.drawArrays( mode, 0, position.array.length / 3 );
|
|
|
|
|
|
_this.info.render.calls ++;
|
|
|
_this.info.render.points += position.array.length / 3;
|
|
@@ -2992,11 +2992,11 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
} else if ( object instanceof THREE.Line ) {
|
|
|
|
|
|
- var primitives = ( object.type === THREE.LineStrip ) ? _gl.LINE_STRIP : _gl.LINES;
|
|
|
+ var mode = ( object.type === THREE.LineStrip ) ? _gl.LINE_STRIP : _gl.LINES;
|
|
|
|
|
|
setLineWidth( material.linewidth );
|
|
|
|
|
|
- _gl.drawArrays( primitives, 0, geometryGroup.__webglLineCount );
|
|
|
+ _gl.drawArrays( mode, 0, geometryGroup.__webglLineCount );
|
|
|
|
|
|
_this.info.render.calls ++;
|
|
|
|