 {
   if (rayRend->getParameter(vvRenderState::VV_CLIP_MODE))
   {
-    return getKernelWithClipPlane<
+    return getKernelWithClipping<
                                   t_bpc,
                                   t_illumination,
                                   t_opacityCorrection,

                            t_illumination,
                            t_opacityCorrection,
                            t_earlyRayTermination,
                            t_clipPlane,
                            t_clipSphere,
                            t_useSphereAsProbe,
                            0
                           >(rayRend);
  }
}

template<
         int t_bpc,
         bool t_illumination,
         bool t_opacityCorrection,
         bool t_earlyRayTermination,
         bool t_clipPlane
        >
renderKernel getKernelWithClipPlane(vvRayRend* rayRend)
{
  if (((rayRend->getParameter(vvRenderState::VV_IS_ROI_USED)!=0.0)
     && (rayRend->getParameter(vvRenderState::VV_SPHERICAL_ROI)!=0.0)))
  {
    return getKernelWithSphereAsProbe<
                                      t_bpc,
                                      t_illumination,
                                      t_opacityCorrection,
                                      t_earlyRayTermination,
                                      t_clipPlane,
                                      true,
                                      true
                                     >(rayRend);
  }
  else
  {
    return getKernelWithSphereAsProbe<
                                      t_bpc,
                                      t_illumination,
                                      t_opacityCorrection,
                                      t_earlyRayTermination,
                                      t_clipPlane,
                                      false,
                                      false
                                     >(rayRend);
  }
}


                            t_illumination,
                            t_opacityCorrection,
                            t_earlyRayTermination,
                            t_clipping,
                            t_mipMode,
                            true
                           >(rayRend);
