Browse Source

VREffect: unset the rendertarget before clear (#9695)

This will unset the current rendertarget of the renderer if no
rendertarget is specified to the render()-call.
Martin Schuhfuss 8 years ago
parent
commit
92a577dc86
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/js/effects/VREffect.js

+ 1 - 0
examples/js/effects/VREffect.js

@@ -281,6 +281,7 @@ THREE.VREffect = function ( renderer, onError ) {
 
 			} else  {
 
+				renderer.setRenderTarget( null );
 				renderer.setScissorTest( true );
 
 			}