QVTKGraphicsItem does not call OpenGLInitContext() on its render window
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The vtkGenericOpenGLRenderWindow does not call OpenGLInit() by itself (in contrast to vtkWin32/X/.../RenderWindows. The OpenGLInit() calls OpenGLInitContext(), which initializes the GL Extension manager and the vtkgl entry points.
When rendering a scene using the QVTKGraphicsItem which uses entry points of vtkgl, this crashes because OpenGLInitContext() was never called.
The problem goes away if one uses a QVTKWidget/QVTKWidget2 first, because this initialized the global vtkgl entry points.
I think it would be better to call OpenGLInitContext() on the render window in QVTKGraphicsItem::MakeCurrent() when MakeCurrent is called the first time.