Skip to content

Fix vtkGPUVolumeRayCastMapper multi-volume-rendering crash

Andras Lasso requested to merge lassoan/vtk:fix-multi-volume-render-crash into master

After removing a volume from the input vtkMultiVolume and then updating another input volume, vtkGPUVolumeRayCastMapper crashed in vtkGPUVolumeRayCastMapper::CloneInput because input was nullptr and it was dereferenced when calling input->GetMTime().

Fixed by checking input for nullptr.

Also updated vtkGPUVolumeRayCastMapper::TransformInput so that it clears the transformed input when input is nullptr.

Merge request reports