Explorar el Código

fixed scoping issue

Marc-Sefan Cassola hace 6 años
padre
commit
e248e7f557
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/renderers/webgl/WebGLShadowMap.js

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

@@ -100,6 +100,8 @@ function WebGLShadowMap( _renderer, _objects, maxTextureSize ) {
 
 		if ( lights.length === 0 ) return;
 
+		var currentRenderTarget = _renderer.getRenderTarget();
+
 		var _state = _renderer.state;
 
 		// Set GL state for depth map.