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

Set gSP.clipRatio default value to 1 for all ucodes but Rej ones, where it is 2.

This commit is contained in:
Sergey Lipskiy 2020-04-03 17:45:58 +07:00
parent 2c51fb096f
commit 0b8f10f9d6
2 changed files with 2 additions and 1 deletions

View File

@ -323,6 +323,7 @@ void GBIInfo::_makeCurrent(MicrocodeInfo * _pCurrent)
GBI_SetGBI(G_RDPHALF_1, F3DBETA_RDPHALF_1, F3D_RDPHalf_1);
GBI_SetGBI(G_RDPHALF_2, F3DBETA_RDPHALF_2, F3D_RDPHalf_2);
}
gSP.clipRatio = m_pCurrent->Rej ? 2U : 1U;
} else if (m_pCurrent->NoN != _pCurrent->NoN) {
if (_pCurrent->NoN)
gfxContext.setClampMode(graphics::ClampMode::NoNearPlaneClipping);

View File

@ -223,7 +223,7 @@ void RSP_SetDefaultState()
gSP.matrix.modelView[0][2][2] = 1.0f;
gSP.matrix.modelView[0][3][3] = 1.0f;
gSP.clipRatio = 2U;
gSP.clipRatio = 1U;
gDP.otherMode._u64 = 0U;
gDP.otherMode.bi_lerp0 = gDP.otherMode.bi_lerp1 = 1;