nv2a/psh: fix shader compilation errors

dotSTR had an extra bracket at the end, and an incorrect
variable type.
This commit is contained in:
Lynne 2022-07-02 14:04:17 +02:00 committed by mborgerson
parent d06a0c22f1
commit 6a8a967438
1 changed files with 1 additions and 1 deletions

View File

@ -993,7 +993,7 @@ static MString* psh_convert(struct PixelShader *ps)
mstring_append_fmt(vars, "/* PS_TEXTUREMODES_DOT_STR_3D */\n");
mstring_append_fmt(vars,
"float dot%d = dot(pT%d.xyz, %s(t%d.rgb));\n"
"vec2 dotSTR%d = vec3(dot%d, dot%d, dot%d));\n",
"vec3 dotSTR%d = vec3(dot%d, dot%d, dot%d);\n",
i, i, dotmap_func, ps->input_tex[i],
i, i-2, i-1, i);