Commit abcfa1c6 authored by David E. DeMarle's avatar David E. DeMarle

Merge commit '30dd43d7' into release

parents 5241fea8 30dd43d7
......@@ -24,6 +24,7 @@
#include "vtkInformation.h"
#include "vtkInformationIntegerKey.h"
#include "vtkInformationStringKey.h"
#include "vtkMath.h"
#include "vtkObjectFactory.h"
#include "vtkOSPRayActorNode.h"
#include "vtkOSPRayCameraNode.h"
......@@ -121,7 +122,7 @@ namespace ospray {
{
const double z_n = 2.0 * glDepthBuffer[i] - 1.0;
ospDepthBuffer[i] = 2.0 * zNear * zFar / (zFar + zNear - z_n * (zFar - zNear));
if (isnan(ospDepthBuffer[i]))
if (vtkMath::IsNan(ospDepthBuffer[i]))
{
ospDepthBuffer[i] = FLT_MAX;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment