Browse Source

minor fix for textures

Nicolas Cannasse 11 years ago
parent
commit
da8ce6a99d
1 changed files with 1 additions and 1 deletions
  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);
 		}