提交 31d125e6 编写于 作者: M Mr.doob

WebGLRenderer: Do not attempt to render when drawCount is 0. See #8395.

上级 89b3d0ba
......@@ -806,7 +806,7 @@ function WebGLRenderer( parameters ) {
//
var dataStart = 0;
var dataCount = Infinity;
var dataCount = 0;
if ( index !== null ) {
......@@ -829,6 +829,8 @@ function WebGLRenderer( parameters ) {
var drawCount = Math.max( 0, drawEnd - drawStart + 1 );
if ( drawCount === 0 ) return;
//
if ( object.isMesh ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册