瀏覽代碼

Do not bound depth during Copy pass.

TothBenoit 6 月之前
父節點
當前提交
c6167ba16e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/pass/Copy.hx

+ 1 - 1
h3d/pass/Copy.hx

@@ -86,7 +86,7 @@ class Copy extends ScreenFx<CopyShader> {
 
 
 	public function apply( from, to, ?blend : h3d.mat.BlendMode, ?customPass : h3d.mat.Pass, ?layer :Int) {
 	public function apply( from, to, ?blend : h3d.mat.BlendMode, ?customPass : h3d.mat.Pass, ?layer :Int) {
 		if( to != null )
 		if( to != null )
-			engine.pushTarget(to, layer != null ? layer : 0);
+			engine.pushTarget(to, layer != null ? layer : 0, NotBound);
 		shader.texture = from;
 		shader.texture = from;
 		if( customPass != null ) {
 		if( customPass != null ) {
 			if( blend != null ) customPass.setBlendMode(blend);
 			if( blend != null ) customPass.setBlendMode(blend);