浏览代码

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 年之前
父节点
当前提交
92a577dc86
共有 1 个文件被更改,包括 1 次插入0 次删除
  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 );
 
 			}