Commit e6ae6898 authored by Marcus D. Hanwell's avatar Marcus D. Hanwell
Browse files

BUG: Fail gracefully when GLSL can't compile.

parent 3da3d33d
......@@ -101,19 +101,18 @@ int TestGLSL( int argc, char * argv [] )
// Ensure that there is a valid OpenGL context - Mac inconsistent behavior.
view->GetRenderWindow()->SetMultiSamples(0);
int retVal = vtkRegressionTestImage(view->GetRenderWindow());
view->GetInteractor()->Start();
// Need to attempt at least one render, to see if the GLSL can compile.
view->Render();
if (test->IsCompiled)
{
return !retVal;
view->GetInteractor()->Start();
}
else
{
cout << "GLSL 1.20 required, shader failed to compile." << endl;
return 0;
}
return EXIT_SUCCESS;
}
// Make our new derived class to draw a diagram
......
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