浏览代码

disable varying optimization again

ncannasse 11 年之前
父节点
当前提交
e56d15ac63
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      hxsl/AgalOut.hx

+ 3 - 1
hxsl/AgalOut.hx

@@ -78,7 +78,9 @@ class AgalOut {
 				found = i;
 				break;
 			}
-			if( found < 0 ) {
+			// disable varying packing : some results show that if stored in XY or ZW the result will differ ! (AGAL bug ?)
+			// also maybe a bad idea since it doesn't allow texture pre-fetch
+			if( found < 0 || true ) {
 				found = valloc.length;
 				valloc.push([X, Y, Z, W]);
 			}