Skip to content

Commit 4959aaf

Browse files
committed
WebGLShadowMap: Removed, I think, unneeded state resets.
1 parent aa0531d commit 4959aaf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/renderers/webgl/WebGLShadowMap.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,6 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
278278

279279
}
280280

281-
// We must call _renderer.resetGLState() at the end of each iteration of
282-
// the light loop in order to force material updates for each light.
283-
_renderer.resetGLState();
284-
285281
}
286282

287283
// Restore GL state.
@@ -297,8 +293,6 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
297293

298294
}
299295

300-
_renderer.resetGLState();
301-
302296
scope.needsUpdate = false;
303297

304298
};

0 commit comments

Comments
 (0)