Expand primitives: Check the vertex count too.

Still getting a few crashes, let's get rid of the last of them from this,
hopefully.
This commit is contained in:
Henrik Rydgård committed 2024-01-28 22:48:40 +01:00
1 parent f9fff4227f
commit cb79783539
6 files changed
+26 -15

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, RemainingIndices(inds), numDecodedVerts_, &result);
swTransform.BuildDrawingParams(prim, vertexCount, dec_->VertexType(), inds, RemainingIndices(inds), numDecodedVerts_, VERTEX_BUFFER_MAX, &result);
if (result.setSafeSize)
framebufferManager_->SetSafeSize(result.safeWidth, result.safeHeight);