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

+1 -1
View File
@@ -403,7 +403,7 @@ void DrawEngineGLES::DoFlush() {
ApplyDrawState(prim);
if (result.action == SW_NOT_READY)
swTransform.BuildDrawingParams(prim, vertexCount, dec_->VertexType(), inds, numDecodedVerts_, &result);
swTransform.BuildDrawingParams(prim, vertexCount, dec_->VertexType(), inds, RemainingIndices(inds), numDecodedVerts_, &result);
if (result.setSafeSize)
framebufferManager_->SetSafeSize(result.safeWidth, result.safeHeight);