From 69c3a6fb3b6ffba30df4bc2fbedf6027fa7213ee Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Thu, 8 Nov 2018 21:28:26 +0100 Subject: [PATCH] COMP: fix conditional for VTK legacy rendering. - was deprecated for removal with VTK 8.1.0 definitely removed in VTK 8.2.0 --- .../graphics/runTimePostProcessing/runTimePostProcessing.C | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/functionObjects/graphics/runTimePostProcessing/runTimePostProcessing.C b/src/functionObjects/graphics/runTimePostProcessing/runTimePostProcessing.C index 03057fa43b..58bab58707 100644 --- a/src/functionObjects/graphics/runTimePostProcessing/runTimePostProcessing.C +++ b/src/functionObjects/graphics/runTimePostProcessing/runTimePostProcessing.C @@ -158,8 +158,11 @@ bool Foam::functionObjects::runTimePostProcessing::write() auto renderWindow = vtkSmartPointer::New(); renderWindow->OffScreenRenderingOn(); renderWindow->SetSize(output_.width_, output_.height_); - #if (VTK_MAJOR_VERSION < 9) - renderWindow->SetAAFrames(10); // Legacy rendering + + // Legacy rendering - was deprecated for 8.1.0 + #if (VTK_MAJOR_VERSION < 8) || \ + ((VTK_MAJOR_VERSION == 8) && (VTK_MINOR_VERSION < 2)) + renderWindow->SetAAFrames(10); #endif renderWindow->SetAlphaBitPlanes(true); renderWindow->SetMultiSamples(0);