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

Correct GBIInfo::_makeCurrent - check NoN flag of the new microcode.

Fixed WCW Backstage Assault.
This commit is contained in:
Sergey Lipskiy 2015-04-05 19:38:37 +06:00
parent a909395c1d
commit 9b923ab5d9

11
GBI.cpp
View File

@ -185,6 +185,17 @@ void GBIInfo::_makeCurrent(MicrocodeInfo * _pCurrent)
glDisable(GL_DEPTH_CLAMP);
glDisable(GL_CLIP_DISTANCE0);
}
} else if (m_pCurrent->NoN != _pCurrent->NoN) {
if (_pCurrent->NoN) {
// Disable near and far plane clipping
glEnable(GL_DEPTH_CLAMP);
// Enable Far clipping plane in vertex shader
glEnable(GL_CLIP_DISTANCE0);
}
else {
glDisable(GL_DEPTH_CLAMP);
glDisable(GL_CLIP_DISTANCE0);
}
}
m_pCurrent = _pCurrent;
}