From 603f863b71854d7f12736744331a2cf6396052e5 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Tue, 30 Aug 2022 20:17:49 -0500 Subject: [PATCH] GS: Don't clamp fbw to 1 fbw zero is a thing --- pcsx2/GS/GSState.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pcsx2/GS/GSState.cpp b/pcsx2/GS/GSState.cpp index 043e176177..a047eef6b3 100644 --- a/pcsx2/GS/GSState.cpp +++ b/pcsx2/GS/GSState.cpp @@ -1490,9 +1490,8 @@ void GSState::GIFRegHandlerFRAME(const GIFReg* RESTRICT r) GL_REG("FRAME_%d = 0x%x_%x", i, r->U32[1], r->U32[0]); GIFRegFRAME NewFrame = r->FRAME; - // FBW is clamped between 1 and 32, however this is wrong, FBW of 0 *should* work and does on Dobiestation - // However there is some issues so even software mode is incorrect on PCSX2, but this works better.. - NewFrame.FBW = std::clamp(NewFrame.FBW, 1U, 32U); + // FBW is clamped to 32 + NewFrame.FBW = std::min(NewFrame.FBW, 32U); if ((NewFrame.PSM & 0x30) == 0x30) m_env.CTXT[i].ZBUF.PSM &= ~0x30;