From 688ba5c37d2ade257bdb7f3d0fc6b48ffaa58cd1 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Sun, 13 May 2018 16:48:09 +0200 Subject: [PATCH] Fix autosort translucent poly bug (rayman). probably still not right... --- core/hw/pvr/ta_vtx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hw/pvr/ta_vtx.cpp b/core/hw/pvr/ta_vtx.cpp index 65757b76f..68cf09226 100644 --- a/core/hw/pvr/ta_vtx.cpp +++ b/core/hw/pvr/ta_vtx.cpp @@ -1647,8 +1647,8 @@ bool UsingAutoSort() if (((FPU_PARAM_CFG >> 21) & 1) == 0) return ((ISP_FEED_CFG & 1) == 0); else { - // Hack: check several tiles instead of just the first one (Rayman, VR2) - for (u32 i = 0; i < 16; i++) + // Hack: check all the tiles instead of just the first one (Rayman, VR2) + for (u32 i = 0; i < 300; i++) { if (((vri(REGION_BASE + i * 24) >> 29) & 1) == 0) return true;