From 06f324848d810691eb6875c601d782e009f81102 Mon Sep 17 00:00:00 2001 From: espes Date: Sat, 23 Nov 2013 11:31:58 +1100 Subject: [PATCH] things are even *less* broken if we undo the perspecive divide proper --- hw/xbox/nv2a_vsh.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/xbox/nv2a_vsh.c b/hw/xbox/nv2a_vsh.c index d182f56492..fe2a3b89de 100644 --- a/hw/xbox/nv2a_vsh.c +++ b/hw/xbox/nv2a_vsh.c @@ -682,7 +682,9 @@ QString* vsh_translate(uint16_t version, "RCP R1.z, R1.z;\n" "MUL R12.xyz, R12, R1;\n" - "MOV R12.w, 1;\n" + + /* undo the perspective divide */ + "MUL R12.xyz, R12, R12.w;\n" /* Z coord [0;1]->[-1;1] mapping, see comment in transform_projection * in state.c