2
0
Эх сурвалжийг харах

prevent flat keyword to be written more than once.

borisrp 2 өдөр өмнө
parent
commit
13ecd0fb6c
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  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);
 			}