Skip to content

correcting function calls to OSPRay

Roba Binyahib requested to merge rbinyahib/vtk:master into master

This merge request is correcting function calls to ospray, the current calls results in seg faults in some use cases.

  • The ospRelease(ospCamera); call in vtkOSPRayCameraNode results in passing a nullptr to OSPRay for the camera object. The ospRelease call should happen at the end in ~vtkOSPRayRendererNode().
  • Passing zero to ospSetObject will set the parameter to a nullptr, to avoid that ospRemoveParam will remove the parameter instead.

These changes were tested on VTK and VisIt using the most recent OSPRay code.

Please let me know if you have any questions.

Merge request reports