소스 검색

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);
 			}