mirror of https://github.com/xemu-project/xemu.git
nv2a/psh: Fix 2D texture addressing in DOT_STR_3D mode
This commit is contained in:
parent
b48f84af79
commit
3e5261fd88
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue