Skip to content

Add checks for number of lights and warning in vtkOpenGLGPUVolumeRayCastMapper

Gaspard Thevenon requested to merge gaspard.thevenon/vtk:light-crash into master

Fix for issue : #18507 (closed)

Small fix to prevent VTK from crashing when vtkOpenGLGPUVolumeRayCastMapper has to handle more than 6 lights. This fix adds tests to prevent the stack from being smashed in vtkOpenGLGPUVolumeRayCastMapper::vtkInternal::SetLightingShaderParameters, and adds a warning.

Edited by Gaspard Thevenon

Merge request reports