瀏覽代碼

minor fix for textures

Nicolas Cannasse 11 年之前
父節點
當前提交
da8ce6a99d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hxsl/Flatten.hx

+ 1 - 1
hxsl/Flatten.hx

@@ -205,7 +205,7 @@ class Flatten {
 			}
 		}
 		g.type = TArray(TVec(4, t), SConst(apos >> 2));
-		if( vars.length > 0 ) {
+		if( apos > 0 ) {
 			outVars.push(g);
 			allocData.set(g, alloc);
 		}