From 822ebf9dfbbc41f97428330b61356ebeb2bf71a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 28 Dec 2023 10:40:38 +0100 Subject: [PATCH] Use the correct culling function in the fast draw-continuation loop --- GPU/GPUCommonHW.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPU/GPUCommonHW.cpp b/GPU/GPUCommonHW.cpp index 2c1eba7f4d..2e20702f6b 100644 --- a/GPU/GPUCommonHW.cpp +++ b/GPU/GPUCommonHW.cpp @@ -1086,7 +1086,8 @@ void GPUCommonHW::Execute_Prim(u32 op, u32 diff) { bool passCulling = onePassed || PASSES_CULLING; if (!passCulling) { // Do software culling. - if (drawEngineCommon_->TestBoundingBox(verts, inds, count, vertexType)) { + _dbg_assert_((vertexType & GE_VTYPE_IDX_MASK) == GE_VTYPE_IDX_NONE); + if (drawEngineCommon_->TestBoundingBoxFast(verts, count, vertexType)) { passCulling = true; } else { gpuStats.numCulledDraws++;