Commit b43ec782 authored by Ken Martin's avatar Ken Martin Committed by Kitware Robot

Merge topic 'fix_cppcheck_issue'

ddddcab0 Try to make the cppcheck happy
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: David E. DeMarle's avatarDavid E DeMarle <dave.demarle@kitware.com>
Merge-request: !1985
parents 9768c8eb ddddcab0
......@@ -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