(VTK): crash when lauching SVolume
What does this MR do?
This adds the definition vtkRenderingVolume_AUTOINIT=1(vtkRenderingVolumeOpenGL2)
necessary to get the vtkSmartVolumeMapper
factory registered. Otherwise SVolume
fails at instantiation and crashes the application.
I added the dependency in fwRenderVTK
and not in visuVTKVRAdaptor
because of PCH. Since we use the PCH of fwRenderVTK
in visuVTKVRAdaptor
, we need to share the same compile definitions. If we add this definition only in visuVTKVRAdaptor
, this leads to get warning or compiler errors with gcc and clang.
How to test it?
Reproduce #296 (closed).
Associated Issues/Merge Requests
- Issues
- Closes #296 (closed)