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() ...@@ -158,8 +158,11 @@ bool Foam::functionObjects::runTimePostProcessing::write()
auto renderWindow = vtkSmartPointer<vtkRenderWindow>::New(); auto renderWindow = vtkSmartPointer<vtkRenderWindow>::New();
renderWindow->OffScreenRenderingOn(); renderWindow->OffScreenRenderingOn();
renderWindow->SetSize(output_.width_, output_.height_); 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 #endif
renderWindow->SetAlphaBitPlanes(true); renderWindow->SetAlphaBitPlanes(true);
renderWindow->SetMultiSamples(0); renderWindow->SetMultiSamples(0);
......
Supports Markdown
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