Skip to content

Commit 8c8a352

Browse files
authored
Fix adjacency guard condition (#236)
1 parent e431247 commit 8c8a352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DirectXMesh/DirectXMeshletGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ namespace
355355
continue;
356356

357357
// Primitive is outside the subset
358-
if (adj[i] < subset.first || adj[i] > endIndex)
358+
if (adj[i] < subset.first || adj[i] >= endIndex)
359359
continue;
360360

361361
// Already processed triangle

0 commit comments

Comments
 (0)