Browse Source

WebGLShadowMap: Removed, I think, unneeded state resets.

Mr.doob 9 years ago
parent
commit
4959aaff04
1 changed files with 0 additions and 6 deletions
  1. 0 6
      src/renderers/webgl/WebGLShadowMap.js

+ 0 - 6
src/renderers/webgl/WebGLShadowMap.js

@@ -278,10 +278,6 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
 
 			}
 
-			// We must call _renderer.resetGLState() at the end of each iteration of
-			// the light loop in order to force material updates for each light.
-			_renderer.resetGLState();
-
 		}
 
 		// Restore GL state.
@@ -297,8 +293,6 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
 
 		}
 
-		_renderer.resetGLState();
-
 		scope.needsUpdate = false;
 
 	};