|
@@ -1073,12 +1073,6 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
attribute = geometry.attributes[ a ];
|
|
|
|
|
|
- if ( attribute.numItems === undefined ) {
|
|
|
-
|
|
|
- attribute.numItems = attribute.array.length;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
attribute.buffer = _gl.createBuffer();
|
|
|
|
|
|
_gl.bindBuffer( type, attribute.buffer );
|
|
@@ -2706,11 +2700,11 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
// render non-indexed triangles
|
|
|
|
|
|
- _gl.drawArrays( _gl.TRIANGLES, 0, position.numItems / 3 );
|
|
|
+ _gl.drawArrays( _gl.TRIANGLES, 0, position.array.length / 3 );
|
|
|
|
|
|
_this.info.render.calls ++;
|
|
|
- _this.info.render.vertices += position.numItems / 3;
|
|
|
- _this.info.render.faces += position.numItems / 3 / 3;
|
|
|
+ _this.info.render.vertices += position.array.length / 3;
|
|
|
+ _this.info.render.faces += position.array.length / 3 / 3;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -2758,10 +2752,10 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
// render particles
|
|
|
|
|
|
- _gl.drawArrays( _gl.POINTS, 0, position.numItems / 3 );
|
|
|
+ _gl.drawArrays( _gl.POINTS, 0, position.array.length / 3 );
|
|
|
|
|
|
_this.info.render.calls ++;
|
|
|
- _this.info.render.points += position.numItems / 3;
|
|
|
+ _this.info.render.points += position.array.length / 3;
|
|
|
|
|
|
} else if ( object instanceof THREE.Line ) {
|
|
|
|
|
@@ -2818,9 +2812,9 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
var position = geometryAttributes[ "position" ];
|
|
|
|
|
|
- _gl.drawArrays( primitives, 0, position.numItems / 3 );
|
|
|
+ _gl.drawArrays( primitives, 0, position.array.length / 3 );
|
|
|
_this.info.render.calls ++;
|
|
|
- _this.info.render.points += position.numItems;
|
|
|
+ _this.info.render.points += position.array.length;
|
|
|
}
|
|
|
|
|
|
|