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

Merge topic 'fix_cppcheck_issue'


 Try to make the cppcheck happy
Acked-by: Kitware Robot's avatarKitware Robot <>
Reviewed-by: default avatarDavid E DeMarle <>
Merge-request: !1985
parents 9768c8eb ddddcab0
...@@ -431,7 +431,9 @@ void vtkCompositeMapperHelper2::DrawIBO( ...@@ -431,7 +431,9 @@ void vtkCompositeMapperHelper2::DrawIBO(
if (endhdata->Visibility && if (endhdata->Visibility &&
endhdata->NextIndex[primType] > starthdata->StartIndex[primType]) 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, this->SetShaderValues(prog, starthdata,
starthdata->PrimOffsets[primType]); 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