Skip to content

Commit

Permalink
#5912: When rendering a geometry chunk, use the actual number of used…
Browse files Browse the repository at this point in the history
… indices instead of the memory block's capacity.
  • Loading branch information
codereader committed Mar 4, 2022
1 parent 18f5e5d commit 20a0444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radiantcore/rendersystem/backend/GeometryStore.h
Expand Up @@ -147,7 +147,7 @@ class GeometryStore :
{
current.vertices.getBufferStart(),
current.indices.getBufferStart() + current.indices.getOffset(indexSlot), // pointer to first index
current.indices.getSize(indexSlot), // index count of the given geometry
current.indices.getNumUsedElements(indexSlot), // index count of the given geometry
current.vertices.getOffset(vertexSlot) // offset to the first vertex
};
}
Expand Down

0 comments on commit 20a0444

Please sign in to comment.