Commit 87122d3c authored by Michael Migliore's avatar Michael Migliore

Add more informations when glew init failed

parent 95502905
Pipeline #122668 running with stage
......@@ -737,7 +737,8 @@ void vtkOpenGLRenderWindow::OpenGLInitContext()
this->GlewInitValid = (result == GLEW_OK);
if (!this->GlewInitValid)
{
vtkErrorMacro("GLEW could not be initialized.");
const char* errorMsg = reinterpret_cast<const char*>(glewGetErrorString(result));
vtkErrorMacro("GLEW could not be initialized: " << errorMsg);
return;
}
......
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