|
@@ -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 ) {
|