Commit f72246fa authored by Dave DeMarle's avatar Dave DeMarle
Browse files

Fix parallel piston test on linux

It was throwing X errors when the interactor started in -I mode.
Now it doesn't.

Change-Id: I878ac5d56c751f3f6660ebe1e49d0836304502b1
parent cb41da4c
......@@ -174,6 +174,9 @@ void MyProcess::Execute()
vtkRenderWindow *renWin = prm->MakeRenderWindow();
renWin->AddRenderer(renderer);
renWin->DoubleBufferOn();
renWin->SetMultiSamples(0);
vtkRenderWindowInteractor* iren = vtkRenderWindowInteractor::New();
iren->SetRenderWindow(renWin);
renWin->Render();
// TODO: Add an argument to decide if use interop or not
......@@ -187,19 +190,14 @@ void MyProcess::Execute()
{
prm->ResetAllCameras();
vtkRenderWindowInteractor* iren = vtkRenderWindowInteractor::New();
iren->SetRenderWindow(renWin);
this->ReturnValue =
vtkRegressionTester::Test(this->Argc, this->Argv, renWin, 10);
if (this->ReturnValue == vtkRegressionTester::DO_INTERACTOR)
{
renWin->Render();
prm->StartInteractor();
}
iren->Delete();
this->Controller->TriggerBreakRMIs();
this->Controller->Barrier();
}
......@@ -214,6 +212,7 @@ void MyProcess::Execute()
renderer->Delete();
renWin->Delete();
iren->Delete();
}
......
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