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
@@ -431,7 +431,7 @@ void DrawEngineVulkan::DoFlush() {
if (result.action == SW_NOT_READY) {
// 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);
swTransform.BuildDrawingParams(prim, vertexCount, dec_->VertexType(), inds, RemainingIndices(inds), numDecodedVerts_, VERTEX_BUFFER_MAX, &result);
}
if (result.setSafeSize)