瀏覽代碼

fixed mrt in gles3

ncannasse 7 年之前
父節點
當前提交
fc20d55145
共有 1 個文件被更改,包括 2 次插入0 次删除
  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;