Fix Mario 64 texture wobble (ported from libretro)

Thanks to anon on /emugen/ for pointing this out. Original fix here bc23392568
This commit is contained in:
AmbientMalice 2016-01-27 15:26:28 +10:00
parent 60905a3017
commit 5b82ca80da
1 changed files with 3 additions and 3 deletions

View File

@ -707,7 +707,7 @@ static void clip_w(int interpolate_colors)
rdp.vtxbuf[index].x = Vi.x + (Vj.x - Vi.x) * percent;
rdp.vtxbuf[index].y = Vi.y + (Vj.y - Vi.y) * percent;
rdp.vtxbuf[index].z = Vi.z + (Vj.z - Vi.z) * percent;
rdp.vtxbuf[index].w = 0.01f;
rdp.vtxbuf[index].w = 1.00f;
rdp.vtxbuf[index].u0 = Vi.u0 + (Vj.u0 - Vi.u0) * percent;
rdp.vtxbuf[index].v0 = Vi.v0 + (Vj.v0 - Vi.v0) * percent;
rdp.vtxbuf[index].u1 = Vi.u1 + (Vj.u1 - Vi.u1) * percent;
@ -728,7 +728,7 @@ static void clip_w(int interpolate_colors)
rdp.vtxbuf[index].x = Vj.x + (Vi.x - Vj.x) * percent;
rdp.vtxbuf[index].y = Vj.y + (Vi.y - Vj.y) * percent;
rdp.vtxbuf[index].z = Vj.z + (Vi.z - Vj.z) * percent;
rdp.vtxbuf[index].w = 0.01f;
rdp.vtxbuf[index].w = 1.00f;
rdp.vtxbuf[index].u0 = Vj.u0 + (Vi.u0 - Vj.u0) * percent;
rdp.vtxbuf[index].v0 = Vj.v0 + (Vi.v0 - Vj.v0) * percent;
rdp.vtxbuf[index].u1 = Vj.u1 + (Vi.u1 - Vj.u1) * percent;
@ -2164,4 +2164,4 @@ void set_message_combiner()
GR_MIPMAPLEVELMASK_BOTH,
&fontTex);
grFogMode(GR_FOG_DISABLE);
}
}