From 7036aa0cc626fd6e868a152f99566c78b9e73ad5 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Fri, 31 Aug 2018 00:08:15 +0700 Subject: [PATCH] Enable "no near clipping" mode for F3DFLX2 ucode. Fixed Near Plane Clipping issue with GLideN64 #1855 --- src/GBI.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/GBI.cpp b/src/GBI.cpp index 1a50956c..d81679ee 100644 --- a/src/GBI.cpp +++ b/src/GBI.cpp @@ -376,9 +376,10 @@ void GBIInfo::loadMicrocode(u32 uc_start, u32 uc_dstart, u16 uc_dsize) if (uc_str[35] == 'H') current.combineMatrices = true; } - if (strncmp(&uc_str[14], "F3DFLX", 6) == 0) + if (strncmp(&uc_str[14], "F3DFLX", 6) == 0) { type = F3DFLX2; - else if (strncmp(&uc_str[14], "F3DZEX", 6) == 0) { + current.NoN = true; + } else if (strncmp(&uc_str[14], "F3DZEX", 6) == 0) { // Zelda games if (uc_str[34] == '6') type = F3DZEX2OOT;