Skip to content

Commit

Permalink
Remove index check from intersectDraw()
Browse files Browse the repository at this point in the history
  • Loading branch information
TP-David committed Nov 1, 2024
1 parent 8fd6cd0 commit 679daba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vsg/utils/PolytopeIntersector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ bool PolytopeIntersector::intersectDraw(uint32_t firstVertex, uint32_t vertexCou
auto& arrayState = *arrayStateStack.back();

vsg::PrimitiveFunctor<vsg::PolytopePrimitiveIntersection> 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;
}
Expand Down

0 comments on commit 679daba

Please sign in to comment.