Browse Source

WebGLRenderer: Reset _currentGeometryGroupHash at the beginning of the frame.

Mr.doob 10 years ago
parent
commit
8fba64ca66
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/renderers/WebGLRenderer.js

+ 1 - 0
src/renderers/WebGLRenderer.js

@@ -3352,6 +3352,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 		// reset caching for this frame
 
+		_currentGeometryGroupHash = - 1;
 		_currentMaterialId = - 1;
 		_currentCamera = null;
 		_lightsNeedUpdate = true;