Nicolas Cannasse 1 éve
szülő
commit
d889b4c9e6
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      hxsl/Flatten.hx

+ 1 - 1
hxsl/Flatten.hx

@@ -116,7 +116,7 @@ class Flatten {
 				access(a, v.type, e.p, AIndex(a));
 		case TArray( { e : TVar(v), p : vp }, eindex):
 			var a = varMap.get(v);
-			if( a == null || (v.type.match(TArray(_)) && eindex.e.match(TConst(CInt(_)))) )
+			if( a == null || (!v.type.match(TBuffer(_)) && eindex.e.match(TConst(CInt(_)))) )
 				e.map(mapExpr);
 			else {
 				switch( v.type ) {