diff --git a/src/vsg/utils/PolytopeIntersector.cpp b/src/vsg/utils/PolytopeIntersector.cpp index 84c963a07..644896d98 100644 --- a/src/vsg/utils/PolytopeIntersector.cpp +++ b/src/vsg/utils/PolytopeIntersector.cpp @@ -309,7 +309,7 @@ bool PolytopeIntersector::intersectDraw(uint32_t firstVertex, uint32_t vertexCou auto& arrayState = *arrayStateStack.back(); vsg::PrimitiveFunctor printPrimitives(*this, arrayState, _polytopeStack.back()); - if (ushort_indices) printPrimitives.draw(arrayState.topology, firstVertex, vertexCount, firstInstance, instanceCount); + printPrimitives.draw(arrayState.topology, firstVertex, vertexCount, firstInstance, instanceCount); return intersections.size() != previous_size; }