From 6c389194b6b71e9bb940abb6d8b403ee0501ac46 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Tue, 7 Jan 2025 00:49:42 -0700 Subject: [PATCH] nv2a/psh: Remove unused arguments in string format --- hw/xbox/nv2a/pgraph/glsl/psh.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/xbox/nv2a/pgraph/glsl/psh.c b/hw/xbox/nv2a/pgraph/glsl/psh.c index 5a7261f2be..9775db2a8a 100644 --- a/hw/xbox/nv2a/pgraph/glsl/psh.c +++ b/hw/xbox/nv2a/pgraph/glsl/psh.c @@ -967,8 +967,7 @@ static MString* psh_convert(struct PixelShader *ps) i, ps->input_tex[i], ps->input_tex[i]); } - mstring_append_fmt(vars, "dsdt%d = bumpMat%d * dsdt%d;\n", - i, i, i, i); + mstring_append_fmt(vars, "dsdt%d = bumpMat%d * dsdt%d;\n", i, i, i); if (ps->state.dim_tex[i] == 2) { mstring_append_fmt(vars, "vec4 t%d = texture(texSamp%d, %s(pT%d.xy + dsdt%d));\n", @@ -995,7 +994,7 @@ static MString* psh_convert(struct PixelShader *ps) } mstring_append_fmt(vars, "dsdtl%d.st = bumpMat%d * dsdtl%d.st;\n", - i, i, i, i); + i, i, i); if (ps->state.dim_tex[i] == 2) { mstring_append_fmt(vars, "vec4 t%d = texture(texSamp%d, %s(pT%d.xy + dsdtl%d.st));\n",