From 5b82ca80da2386b962a8744001c0f6209e116365 Mon Sep 17 00:00:00 2001 From: AmbientMalice Date: Wed, 27 Jan 2016 15:26:28 +1000 Subject: [PATCH] Fix Mario 64 texture wobble (ported from libretro) Thanks to anon on /emugen/ for pointing this out. Original fix here https://github.com/libretro/mupen64plus-libretro/commit/bc23392568a614c53de1680f3a37721283a5dce9 --- Source/Glide64/Util.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Glide64/Util.cpp b/Source/Glide64/Util.cpp index 911e927e7..013342959 100644 --- a/Source/Glide64/Util.cpp +++ b/Source/Glide64/Util.cpp @@ -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); -} \ No newline at end of file +}