Commit ddddcab0 authored by Ken Martin's avatar Ken Martin

Try to make the cppcheck happy

cppcheck thinks we can exceed the bounds on an array so
we add a check to make it happy
parent 82c941ce
Pipeline #26854 passed with stage
......@@ -431,7 +431,9 @@ void vtkCompositeMapperHelper2::DrawIBO(
if (endhdata->Visibility &&
endhdata->NextIndex[primType] > starthdata->StartIndex[primType])
{
if (!this->DrawingEdges)
//compilers think this can exceed the bounds so we also
// test against primType even though we should not need to
if (!this->DrawingEdges && primType < 4)
{
this->SetShaderValues(prog, starthdata,
starthdata->PrimOffsets[primType]);
......
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