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:
parent
a909395c1d
commit
9b923ab5d9
11
GBI.cpp
11
GBI.cpp
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user