Skip to content

Commit 6e513ed

Browse files
committed
nv2a/psh: Fix 2D texture addressing in DOT_STR_3D mode
1 parent b48f84a commit 6e513ed

File tree

1 file changed

+2
-2
lines changed
  • hw/xbox/nv2a/pgraph/glsl

1 file changed

+2
-2
lines changed

hw/xbox/nv2a/pgraph/glsl/psh.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1123,8 +1123,8 @@ static MString* psh_convert(struct PixelShader *ps)
11231123
i, i-2, i-1, i);
11241124

11251125
apply_border_adjustment(ps, vars, i, "dotSTR%d");
1126-
mstring_append_fmt(vars, "vec4 t%d = texture(texSamp%d, dotSTR%d);\n",
1127-
i, i, i);
1126+
mstring_append_fmt(vars, "vec4 t%d = texture(texSamp%d, %s(dotSTR%d%s));\n",
1127+
i, i, tex_remap, i, ps->state.dim_tex[i] == 2 ? ".xy" : "");
11281128
break;
11291129
case PS_TEXTUREMODES_DOT_STR_CUBE:
11301130
assert(i == 3);

0 commit comments

Comments
 (0)