From 35fcec1e4b6c703c3c050cc15e2f966bfcbc66d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 10 Oct 2023 02:12:49 +0200 Subject: [PATCH] Another small fix, helps Toca series games. --- GPU/GPUCommonHW.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GPU/GPUCommonHW.cpp b/GPU/GPUCommonHW.cpp index 5e49e21f22..5f3709783f 100644 --- a/GPU/GPUCommonHW.cpp +++ b/GPU/GPUCommonHW.cpp @@ -1046,7 +1046,9 @@ void GPUCommonHW::Execute_Prim(u32 op, u32 diff) { // We can extend again after submitting a normal draw. canExtend = isTriangle; } - drawEngineCommon_->SubmitPrim(verts, inds, newPrim, count, vertTypeID, cullMode, &bytesRead); + if (!drawEngineCommon_->SubmitPrim(verts, inds, newPrim, count, vertTypeID, cullMode, &bytesRead)) { + canExtend = false; + } AdvanceVerts(vertexType, count, bytesRead); totalVertCount += count; break; @@ -1690,7 +1692,7 @@ size_t GPUCommonHW::FormatGPUStatsCommon(char *buffer, size_t size) { "block transfers: %d\n" "replacer: tracks %d references, %d unique textures\n" "Cpy: depth %d, color %d, reint %d, blend %d, self %d\n" - "GPU cycles: %d (%f per vertex)\n%s", + "GPU cycles: %d (%0.1f per vertex)\n%s", gpuStats.msProcessingDisplayLists * 1000.0f, gpuStats.numDrawSyncs, gpuStats.numListSyncs,