Pass the limit on the number of indices to generate to BuildDrawingParams.

This commit is contained in:
Henrik Rydgård committed 2024-01-15 10:09:04 +01:00
1 parent cf5d76faf5
commit db94b0b696
8 files changed
+24 -19

No files matched your search

+2 -1
View File
@@ -430,7 +430,8 @@ void DrawEngineVulkan::DoFlush() {
result.action = SW_NOT_READY;
if (result.action == SW_NOT_READY) {
swTransform.BuildDrawingParams(prim, vertexCount, dec_->VertexType(), inds, numDecodedVerts_, &result);
// decIndex_ here is always equal to inds currently, but it may not be in the future.
swTransform.BuildDrawingParams(prim, vertexCount, dec_->VertexType(), inds, RemainingIndices(inds), numDecodedVerts_, &result);
}
if (result.setSafeSize)