JOGL support in Kitware’s VTK has been improved with JogAmp v2.6.0 and merged on the VTK master branch. Initialization of the OpenGL function pointer is ensured as well as utilizing JOGL’s OpenGL function pointer lookup of used OpenGL context.
Used JOGL/JogAmp version:
- JogAmp v2.6.0
- Downloading and Installing (VTK uses the Maven deployment)
Additionally, a backport to VTK 9.4.2 is available, as well as a recipe for its mingw-w64-vtk makepkg build.
A special thanks to all developers helping with the merge and to Thermo-Calc for commissioning this work.
Fix vtkGenericOpenGLRenderWindow::OpenGLInit()
`vtkGenericOpenGLRenderWindow::OpenGLInit()` must call OpenGLInitContext() before usage via `state->Reset()` to ensure all OpenGL function pointer (glad) are set.
GL state `Reset` uses OpenGL functionality and w/o having initialized the glad dispatch table application gives SIGSEGV calling a nullptr function.
Seamless OpenGL usage between JOGL and VTK
Ensures JOGL and VTK utilizes the same OpenGL function pointer lookup.
The latter is essential to ensure same set of OpenGL functions are being used between JOGL and VTK and further allows JOGL loading a custom loaded OpenGL library.