GLX not working if `VTK_OPENGL_HAS_EGL` is enabled
When enabling the option VTK_OPENGL_HAS_EGL
without VTK_DEFAULT_RENDER_WINDOW_HEADLESS
option, vtkNew<vtkRenderWindow>
still instantiate a vtkXOpenGLRenderWindow
, which is fine.
However, vtkXOpenGLRenderWindow
is not working because GLEW is built using GLEW_EGL
variable (see https://gitlab.kitware.com/vtk/vtk/-/blob/master/ThirdParty/glew/vtkglew/CMakeLists.txt).
It seems that it is currently not possible to have both vtkEGLRenderWindow
and vtkXOpenGLRenderWindow
working in the same VTK build, because if I understood correctly, GLEW is not compatible with GLX and EGL at the same time.
Is it intended?