Browse Source

use interleavedBufferAttribute.count insteadof data.count

06wj 7 years ago
parent
commit
02f52e0ee3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderers/webgl/WebGLBufferRenderer.js

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

@@ -35,7 +35,7 @@ function WebGLBufferRenderer( gl, extensions, info ) {
 
 		if ( position.isInterleavedBufferAttribute ) {
 
-			count = position.data.count;
+			count = position.count;
 
 			extension.drawArraysInstancedANGLE( mode, 0, count, geometry.maxInstancedCount );