Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Michael Migliore
VTK
Commits
e6ae6898
Commit
e6ae6898
authored
Aug 22, 2010
by
Marcus D. Hanwell
Browse files
BUG: Fail gracefully when GLSL can't compile.
parent
3da3d33d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Charts/Testing/Cxx/TestGLSL.cxx
View file @
e6ae6898
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment