Commit 0fb443f7 authored by Mark Olesen's avatar Mark Olesen
Browse files

COMP: fix conditional for VTK legacy rendering.

- was deprecated for removal with VTK 8.1.0
  definitely removed in VTK 8.2.0
parent 5527b00b
......@@ -158,8 +158,11 @@ bool Foam::functionObjects::runTimePostProcessing::write()
auto renderWindow = vtkSmartPointer<vtkRenderWindow>::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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment