vtkOpenGLExtensionManager.cxx 20100511 revision causes crash on rendering
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Environment: Laptop with ATI Mobility Radeon HD2600 card, HP Compaq 8510p, Windows 7 32-bit, VC 2008 SP1 When Compiling with GIT version VTK and MITK (www.mitk.org), then open a 3D image using MITK extapp application which in fact call VTK rendering, it will cause a crash when running to Rendering/vtkOpenGLExtensionManager.cxx // Woraround for a nVidia bug in indirect/remote rendering mode (ssh -X)
-
// The version returns is not the one actually supported.
-
// For example, the version returns is greater or equal to 2.1
-
// but where PBO (which are core in 2.1) are not actually supported.
-
// In this case, force the version to be 1.1 (minimal). Anything above
-
// will be requested only through extensions.
-
// See ParaView bug
-
if(result && !this->RenderWindow->IsDirect()) // this line cause crash
-
{
-
if (result && strncmp(name, "GL_VERSION_",11) == 0)
-
{
-
// whatever is the OpenGL version, return false.
-
// (nobody asks for GL_VERSION_1_1)
-
result=0;
-
}
-
}