Browse Source

WebGLObjects: Fixed TypeArray check.

Mr.doob 10 years ago
parent
commit
06eb8c06c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderers/webgl/WebGLObjects.js

+ 1 - 1
src/renderers/webgl/WebGLObjects.js

@@ -258,7 +258,7 @@ THREE.WebGLObjects = function ( gl, properties, info ) {
 
 		console.timeEnd( 'wireframe' );
 
-		var TypeArray = position.array.length > 65535 ? Uint32Array : Uint16Array;
+		var TypeArray = position.count > 65535 ? Uint32Array : Uint16Array;
 		var attribute = new THREE.BufferAttribute( new TypeArray( indices ), 1 );
 
 		updateAttribute( attribute, 'wireframe' );