correcting function calls to OSPRay
This merge request is correcting function calls to ospray, the current calls results in seg faults in some use cases.
- The
ospRelease(ospCamera);
call invtkOSPRayCameraNode
results in passing a nullptr to OSPRay for the camera object. TheospRelease
call should happen at the end in~vtkOSPRayRendererNode()
. - Passing zero to
ospSetObject
will set the parameter to a nullptr, to avoid thatospRemoveParam
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.