From 0a68753a034ed7dda2c34bf604eaad37739605b2 Mon Sep 17 00:00:00 2001 From: jasjuang Date: Thu, 21 Dec 2017 00:52:15 -0800 Subject: [PATCH] handle VTK legacy function --- visualization/src/pcl_visualizer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/visualization/src/pcl_visualizer.cpp b/visualization/src/pcl_visualizer.cpp index d7fe0e9644a..44a734ecd14 100644 --- a/visualization/src/pcl_visualizer.cpp +++ b/visualization/src/pcl_visualizer.cpp @@ -1587,7 +1587,9 @@ pcl::visualization::PCLVisualizer::setPointCloudRenderingProperties ( // using immediate more rendering. case PCL_VISUALIZER_IMMEDIATE_RENDERING: { +#if VTK_RENDERING_BACKEND_OPENGL_VERSION < 2 actor->GetMapper ()->SetImmediateModeRendering (int (value)); +#endif actor->Modified (); break; }