We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25cacde commit 09ffc17Copy full SHA for 09ffc17
Gems/Atom/Feature/Common/Code/Source/Mesh/MeshFeatureProcessor.cpp
@@ -651,7 +651,7 @@ namespace AZ
651
{
652
size_t batchStart = batchIndex * batchSize;
653
// If we're in the last batch, we just get the remaining objects
654
- size_t currentBatchCount = batchIndex == batchCount - 1 ? visibleObjectCount % batchSize : batchSize;
+ size_t currentBatchCount = batchIndex == batchCount - 1 ? visibleObjectCount - batchStart : batchSize;
655
656
addVisibleObjectsToBucketsTG.AddTask(
657
addVisibleObjectsToBucketsTaskDescriptor,
0 commit comments