1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Fix gSPBranchLessZ: branch if vertex Z is out of screen.

Fixed missing road polygons in GT 64.
This commit is contained in:
Sergey Lipskiy 2014-12-05 18:20:17 +06:00
parent 6dc87a9ce9
commit 27eed46e83

View File

@ -1265,7 +1265,8 @@ void gSPBranchLessZ( u32 branchdl, u32 vtx, f32 zval )
}
SPVertex & v = video().getRender().getVertex(vtx);
if (v.z/v.w <= zval)
const float zTest = v.z / v.w;
if (zTest > 1.0f || zTest <= zval)
RSP.PC[RSP.PCi] = address;
#ifdef DEBUG