From 7738899434bfc36b6c9a5383c768a071f201531f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 17 Jul 2024 16:11:23 +0200 Subject: [PATCH] Fix triangle strip vertex order to have a consistent provoking vertex --- GPU/Common/IndexGenerator.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GPU/Common/IndexGenerator.cpp b/GPU/Common/IndexGenerator.cpp index e3c042f4c312..482b78f569fb 100644 --- a/GPU/Common/IndexGenerator.cpp +++ b/GPU/Common/IndexGenerator.cpp @@ -86,13 +86,13 @@ void IndexGenerator::AddList(int numVerts, int indexOffset, bool clockwise) { alignas(16) static const u16 offsets_clockwise[24] = { 0, (u16)(0 + 1), (u16)(0 + 2), - 1, (u16)(1 + 2), (u16)(1 + 1), + (u16)(1 + 1), 1, (u16)(1 + 2), 2, (u16)(2 + 1), (u16)(2 + 2), - 3, (u16)(3 + 2), (u16)(3 + 1), + (u16)(3 + 1), 3, (u16)(3 + 2), 4, (u16)(4 + 1), (u16)(4 + 2), - 5, (u16)(5 + 2), (u16)(5 + 1), + (u16)(5 + 1), 5, (u16)(5 + 2), 6, (u16)(6 + 1), (u16)(6 + 2), - 7, (u16)(7 + 2), (u16)(7 + 1), + (u16)(7 + 1), 7, (u16)(7 + 2), }; alignas(16) static const uint16_t offsets_counter_clockwise[24] = {