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 invtkOSPRayCameraNoderesults in passing a nullptr to OSPRay for the camera object. TheospReleasecall should happen at the end in~vtkOSPRayRendererNode(). - Passing zero to
ospSetObjectwill set the parameter to a nullptr, to avoid thatospRemoveParamwill 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.