Explorar o código

fixed mrt in gles3

ncannasse %!s(int64=7) %!d(string=hai) anos
pai
achega
fc20d55145
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;