Offscreen rendering consistency over platforms
Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx and Rendering/OpenGL2/vtkWin32OpenGLRenderWindow.cxx have very different code handling the offscreen rendering.
You can look at the methods :
- DestroyOffScreenWindow only in X
- CleanUpOffScreenRendering only in Win32
- CleanUpRenderers only in Win32
Moreover, safeguards like "this->CreatingOffScreenWindow" or "resizing" exist in one version and not in the other.
The use of offscreen rendering doesn't seem to be very robust and I often experience segfaults when using it. Maybe a code factorisation is needed first as offscreen handling spreads also into common code handling buffers and windows in Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx