未验证 提交 ec39df04 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #13948 from 06wj/patch0

 Fix WebGLBufferRenderer renderInstance bug
......@@ -31,19 +31,7 @@ function WebGLBufferRenderer( gl, extensions, info ) {
}
var position = geometry.attributes.position;
if ( position.isInterleavedBufferAttribute ) {
count = position.data.count;
extension.drawArraysInstancedANGLE( mode, 0, count, geometry.maxInstancedCount );
} else {
extension.drawArraysInstancedANGLE( mode, start, count, geometry.maxInstancedCount );
}
extension.drawArraysInstancedANGLE( mode, start, count, geometry.maxInstancedCount );
info.update( count, mode, geometry.maxInstancedCount );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册