浏览代码

clear target texture to alpha=0 by default

Nicolas Cannasse 10 年之前
父节点
当前提交
cc4e0f93b6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/impl/Stage3dDriver.hx

+ 1 - 1
h3d/impl/Stage3dDriver.hx

@@ -663,7 +663,7 @@ class Stage3dDriver extends Driver {
 			// make sure we at least clear the color the first time
 			if( flashVersion >= 15 && !t.flags.has(WasCleared) ) {
 				t.flags.set(WasCleared);
-				ctx.clear(0, 0, 0, 1, 1, 0, flash.display3D.Context3DClearMask.COLOR);
+				ctx.clear(0, 0, 0, 0, 1, 0, flash.display3D.Context3DClearMask.COLOR);
 			}
 		}
 		reset();