Commit 5df033ab authored by Aashish Chaudhary's avatar Aashish Chaudhary

Fixed ReductionFactor not initialized that was causing tests to hangup

parent a5890e69
......@@ -1901,7 +1901,8 @@ void vtkOpenGLGPUVolumeRayCastMapper::vtkInternal::UpdateSamplingDistance(
// by 1/reduceFactor.
this->ActualSampleDistance = static_cast<float>(minWorldSpacing);
if (this->Parent->ReductionFactor < 1.0)
if (this->Parent->ReductionFactor < 1.0 &&
this->Parent->ReductionFactor != 0.0)
{
this->ActualSampleDistance /=
static_cast<GLfloat>(this->Parent->ReductionFactor);
......@@ -1999,6 +2000,7 @@ vtkOpenGLGPUVolumeRayCastMapper::vtkOpenGLGPUVolumeRayCastMapper() :
vtkGPUVolumeRayCastMapper()
{
this->Impl = new vtkInternal(this);
this->ReductionFactor = 1.0;
}
///
......
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