Commit 410ced5b authored by Brad King's avatar Brad King

vtkCompositeSurfaceLICMapper: Add missing member initializers

The `LastOpaqueCheckTime` member in particular is used by `GetIsOpaque`
in a condition before being set and so must be initialized.  Otherwise
the condition may never be true and then the also-uninitialized value of
`LastOpaqueCheckValue` will be used, leading to unpredictable rendering.
Initialize all members to avoid such trouble.
parent bfbdc62b
Pipeline #2761 passed with stage
......@@ -96,6 +96,11 @@ vtkStandardNewMacro(vtkCompositeSurfaceLICMapper);
//----------------------------------------------------------------------------
vtkCompositeSurfaceLICMapper::vtkCompositeSurfaceLICMapper()
{
this->LastOpaqueCheckTime = 0;
this->LastOpaqueCheckValue = false;
this->ColorResult[0] = 0;
this->ColorResult[1] = 0;
this->ColorResult[2] = 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