Skip to content

Commit

Permalink
nv2a/psh: fix shader compilation errors
Browse files Browse the repository at this point in the history
dotSTR had an extra bracket at the end, and an incorrect
variable type.
  • Loading branch information
cyanreg authored and mborgerson committed Jul 2, 2022
1 parent d06a0c2 commit 6a8a967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/xbox/nv2a/psh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6a8a967

Please sign in to comment.