]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Visualization/ImageSliceMapper.cxx
...
[cpPlugins.git] / lib / cpExtensions / Visualization / ImageSliceMapper.cxx
index f510b51291c16277aa915fe1c02b1a7c0f7febe5..5bf36fc7943f804fc2d9b0873140af4998d4d2af 100644 (file)
@@ -18,6 +18,7 @@ cpExtensions::Visualization::ImageSliceMapper::
 ImageSliceMapper( )
   : Superclass( )
 {
+#ifdef cpPlugins_OpenGL_BackEnd_OpenGL2
   // Complete polydatas to avoid bizarre rendering errors (multi-thread)
   vtkActor* a[ 3 ];
   a[ 0 ] = this->PolyDataActor;
@@ -51,6 +52,7 @@ ImageSliceMapper( )
     } // fi
 
   } // rof
+#endif // cpPlugins_OpenGL_BackEnd_OpenGL2
 }
 
 // -------------------------------------------------------------------------