Browse Source

use interleavedBufferAttribute.count insteadof data.count

06wj 7 năm trước cách đây
mục cha
commit
02f52e0ee3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 );