Commit 72ce779c authored by François Bertel's avatar François Bertel
Browse files

ENH:Make TestTM3DLightComponents.cxx passing on old configurations.

parent c1024e32
......@@ -104,6 +104,7 @@ int TestTM3DLightComponents(int argc,
lights->AddItem(light);
light->Delete();
renWin->Render(); // make sure we have an OpenGL context.
vtkVolumeProperty *volumeProperty;
vtkVolume *volume;
......@@ -139,15 +140,24 @@ int TestTM3DLightComponents(int argc,
volume->SetProperty(volumeProperty);
ren1->AddViewProp(volume);
int valid=volumeMapper->IsRenderSupported(volumeProperty,ren1);
int retVal;
ren1->ResetCamera();
renWin->Render();
retVal = vtkTesting::Test(argc, argv, renWin, 75);
if (retVal == vtkRegressionTester::DO_INTERACTOR)
if(valid)
{
ren1->ResetCamera();
renWin->Render();
retVal = vtkTesting::Test(argc, argv, renWin, 75);
if (retVal == vtkRegressionTester::DO_INTERACTOR)
{
iren->Start();
}
}
else
{
iren->Start();
retVal=vtkTesting::PASSED;
cout << "Required extensions not supported." << endl;
}
volumeMapper->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