Skip to content

Commit

Permalink
WebGLShadowMap: Removed, I think, unneeded state resets.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Mar 15, 2016
1 parent aa0531d commit 4959aaf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/renderers/webgl/WebGLShadowMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -297,8 +293,6 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {

}

_renderer.resetGLState();

scope.needsUpdate = false;

};
Expand Down

0 comments on commit 4959aaf

Please sign in to comment.