Explorar o código

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 %!s(int64=9) %!d(string=hai) anos
pai
achega
92a577dc86
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 );
 
 			}