Browse Source

fixed mrt in gles3

ncannasse 7 năm trước cách đây
mục cha
commit
fc20d55145
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      hxsl/GlslOut.hx

+ 2 - 0
hxsl/GlslOut.hx

@@ -556,6 +556,8 @@ class GlslOut {
 					continue;
 				}
 				if( isVertex ) continue;
+				if( isES )
+					add('layout(location=${outIndex++}) ');
 				add("out ");
 			case Function:
 				continue;