mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 22:13:25 -06:00
#279 Workaround for invalid near plane location detected on Linux
This commit is contained in:
parent
1b38326d83
commit
8098578545
@ -407,6 +407,10 @@ void caf::Viewer::optimizeClippingPlanes()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// TODO: Investigate why this is needed on Linux
|
||||||
|
// When loading grid files on Linux, the nearPlaneDist results in 0 at this point
|
||||||
|
nearPlaneDist = CVF_MAX(m_minNearPlaneDistance, nearPlaneDist);
|
||||||
|
|
||||||
if (farPlaneDist <= nearPlaneDist) farPlaneDist = nearPlaneDist + 1.0;
|
if (farPlaneDist <= nearPlaneDist) farPlaneDist = nearPlaneDist + 1.0;
|
||||||
|
|
||||||
if (m_mainCamera->projection() == cvf::Camera::PERSPECTIVE)
|
if (m_mainCamera->projection() == cvf::Camera::PERSPECTIVE)
|
||||||
|
Loading…
Reference in New Issue
Block a user