From ce46dbeeca805cf53a1e394216451715a0580fee Mon Sep 17 00:00:00 2001 From: Connor McLaughlin <stenzek@gmail.com> Date: Tue, 28 Apr 2020 02:07:56 +1000 Subject: [PATCH] GPU/HW: Fix another vertex culling error --- src/core/gpu_hw.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/gpu_hw.cpp b/src/core/gpu_hw.cpp index 997b87244..12bc83e5d 100644 --- a/src/core/gpu_hw.cpp +++ b/src/core/gpu_hw.cpp @@ -207,10 +207,10 @@ void GPU_HW::LoadVertices() const s32 max_x_12 = std::max(vertices[1].x, vertices[2].x); const s32 min_y_12 = std::min(vertices[1].y, vertices[2].y); const s32 max_y_12 = std::max(vertices[1].y, vertices[2].y); - const s32 min_x = std::min(min_x_12, vertices[2].x); - const s32 max_x = std::max(max_x_12, vertices[2].x); - const s32 min_y = std::min(min_y_12, vertices[2].y); - const s32 max_y = std::max(max_y_12, vertices[2].y); + const s32 min_x = std::min(min_x_12, vertices[0].x); + const s32 max_x = std::max(max_x_12, vertices[0].x); + const s32 min_y = std::min(min_y_12, vertices[0].y); + const s32 max_y = std::max(max_y_12, vertices[0].y); if ((max_x - min_x) >= MAX_PRIMITIVE_WIDTH || (max_y - min_y) >= MAX_PRIMITIVE_HEIGHT) {