ソースを参照

prevent flat keyword to be written more than once.

borisrp 2 日 前
コミット
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);
 			}