mirror of
https://github.com/OpenMW/openmw.git
synced 2026-02-10 21:38:35 +00:00
Merge branch 'even-if-youre-there' into 'master'
Fix #8952 Closes #8952 See merge request OpenMW/openmw!5144
This commit is contained in:
commit
01bcd6a636
1 changed files with 2 additions and 0 deletions
|
|
@ -645,6 +645,8 @@ MWShadowTechnique::Frustum::Frustum(osgUtil::CullVisitor* cv, double minZNear, d
|
|||
{
|
||||
osg::Matrix::value_type zNear = osg::maximum<osg::Matrix::value_type>(cv->getCalculatedNearPlane(),minZNear);
|
||||
osg::Matrix::value_type zFar = osg::minimum<osg::Matrix::value_type>(cv->getCalculatedFarPlane(),maxZFar);
|
||||
if (zFar < 0)
|
||||
zFar = minZNear;
|
||||
zNear = std::min(zNear, zFar);
|
||||
|
||||
cv->clampProjectionMatrix(projectionMatrix, zNear, zFar);
|
||||
|
|
|
|||
Loading…
Reference in a new issue