Skip to content

(VTK): crash when lauching SVolume

Flavien BRIDAULT requested to merge 296-vtk-crash-when-lauching-svolume into dev

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

Edited by Flavien BRIDAULT

Merge request reports