Ver Fonte

fix: Incorrect argument used to determine vector size on HLSL texel fetch operation ( fix #1255 )

Yanrishatum há 7 meses atrás
pai
commit
c0a21f79ff
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      hxsl/HlslOut.hx

+ 1 - 1
hxsl/HlslOut.hx

@@ -458,7 +458,7 @@ class HlslOut {
 		case TCall({ e : TGlobal(g = (Texel)) }, args):
 			addValue(args[0], tabs);
 			add(".Load(");
-			switch( args[1].t ) {
+			switch( args[0].t ) {
 			case TSampler(dim,arr):
 				var size = Tools.getDimSize(dim, arr) + 1;
 				add("int"+size+"(");