nv2a/psh: Fix 2D texture addressing in DOT_STR_3D mode

This commit is contained in:
Matt Borgerson 2025-04-29 23:22:07 -07:00
parent b48f84af79
commit 3e5261fd88
1 changed files with 2 additions and 2 deletions

View File

@ -1123,8 +1123,8 @@ static MString* psh_convert(struct PixelShader *ps)
i, i-2, i-1, i);
apply_border_adjustment(ps, vars, i, "dotSTR%d");
mstring_append_fmt(vars, "vec4 t%d = texture(texSamp%d, dotSTR%d);\n",
i, i, i);
mstring_append_fmt(vars, "vec4 t%d = texture(texSamp%d, %s(dotSTR%d%s));\n",
i, i, tex_remap, i, ps->state.dim_tex[i] == 2 ? ".xy" : "");
break;
case PS_TEXTUREMODES_DOT_STR_CUBE:
assert(i == 3);