Permalink
Browse files

Update WebGLRenderer.js

Fix for geometry.maxInstancedCount == 0
  • Loading branch information...
jfranc committed Mar 2, 2016
1 parent 1390a2e commit 86fed4c4105e431e1b72d04cd02e67c3f95a207a
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/renderers/WebGLRenderer.js
@@ -901,9 +901,10 @@ THREE.WebGLRenderer = function ( parameters ) {
}
if ( geometry instanceof THREE.InstancedBufferGeometry && geometry.maxInstancedCount > 0 ) {
renderer.renderInstances( geometry, drawStart, drawCount );
if ( geometry instanceof THREE.InstancedBufferGeometry ) {
if( geometry.maxInstancedCount > 0 ) {
renderer.renderInstances( geometry, drawStart, drawCount );
}
} else {

0 comments on commit 86fed4c

Please sign in to comment.