diff --git a/Fwk/AppFwk/cafViewer/cafViewer.cpp b/Fwk/AppFwk/cafViewer/cafViewer.cpp index 20eac73049..a9b128b256 100644 --- a/Fwk/AppFwk/cafViewer/cafViewer.cpp +++ b/Fwk/AppFwk/cafViewer/cafViewer.cpp @@ -407,6 +407,10 @@ void caf::Viewer::optimizeClippingPlanes() } #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 (m_mainCamera->projection() == cvf::Camera::PERSPECTIVE)