Skip to content
Snippets Groups Projects
Commit 6b8cdf97 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

vtkOSOpenGLRenderWindow: handle `nullptr` for extensions

Apparently this can happen in Windows OSMesa builds.
parent 6a8bc119
No related branches found
No related tags found
No related merge requests found
......@@ -439,7 +439,7 @@ const char* vtkOSOpenGLRenderWindow::ReportCapabilities()
strm << "OpenGL vendor string: " << glVendor << endl;
strm << "OpenGL renderer string: " << glRenderer << endl;
strm << "OpenGL version string: " << glVersion << endl;
strm << "OpenGL extensions: " << glExtensions << endl;
strm << "OpenGL extensions: " << (glExtensions ? glExtensions : "(none)") << endl;
delete[] this->Capabilities;
size_t len = strm.str().length();
this->Capabilities = new char[len + 1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment