mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
nv2a/psh: Fix 2D texture addressing in DOT_STR_3D mode
This commit is contained in:
committed by
mborgerson
parent
b48f84af79
commit
6e513ed948
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user