Sfoglia il codice sorgente

prevent flat keyword to be written more than once.

borisrp 2 giorni fa
parent
commit
13ecd0fb6c
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      hxsl/Linker.hx

+ 3 - 1
hxsl/Linker.hx

@@ -380,7 +380,9 @@ class Linker {
 					v2.v.kind = Local;
 					if ( v2.v.qualifiers == null )
 						v2.v.qualifiers = [];
-					v2.v.qualifiers.push(Flat);
+					if(!v2.v.hasQualifier(Flat)){
+						v2.v.qualifiers.push(Flat);
+					}
 				}
 				if( v.kind == Output ) outVars.push(v);
 			}