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);