nv2a: Fix cubemap fourth texture coordinate component handling

Xbox hardware ignores fourth texture coordinate component for cubemaps.
This commit is contained in:
coldhex
2025-03-17 11:37:41 -07:00
committed by mborgerson
parent a00820746f
commit 02659dd3cc
+2 -2
View File
@@ -984,8 +984,8 @@ static MString* psh_convert(struct PixelShader *ps)
}
break;
case PS_TEXTUREMODES_CUBEMAP:
mstring_append_fmt(vars, "vec4 t%d = texture(texSamp%d, pT%d.xyz / pT%d.w);\n",
i, i, i, i);
mstring_append_fmt(vars, "vec4 t%d = texture(texSamp%d, pT%d.xyz);\n",
i, i, i);
break;
case PS_TEXTUREMODES_PASSTHRU:
assert(ps->state.border_logical_size[i][0] == 0.0f && "Unexpected border texture on passthru");