浏览代码

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

Yanrishatum 7 月之前
父节点
当前提交
c0a21f79ff
共有 1 个文件被更改,包括 1 次插入1 次删除
  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+"(");