Explorar o código

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

Yanrishatum hai 8 meses
pai
achega
c0a21f79ff
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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+"(");