From c50399fa71d33eb2dc4c91f285dcf1197b3f04fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 12 Feb 2024 18:03:39 +0100 Subject: [PATCH] Fix stray line in NFS Underground Rivals Fixes #18846 --- GPU/Common/IndexGenerator.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/GPU/Common/IndexGenerator.cpp b/GPU/Common/IndexGenerator.cpp index 1a0a918858..e3c042f4c3 100644 --- a/GPU/Common/IndexGenerator.cpp +++ b/GPU/Common/IndexGenerator.cpp @@ -18,8 +18,10 @@ #include #include "ppsspp_config.h" -#include "CPUDetect.h" -#include "Common.h" + +#include "Common/CPUDetect.h" +#include "Common/Common.h" +#include "Common/Log.h" #ifdef _M_SSE #include @@ -32,7 +34,8 @@ #include #endif #endif -#include "IndexGenerator.h" + +#include "GPU/Common/IndexGenerator.h" // Points don't need indexing... const u8 IndexGenerator::indexedPrimitiveType[7] = { @@ -211,6 +214,7 @@ void IndexGenerator::AddFan(int numVerts, int indexOffset, bool clockwise) { //Lines void IndexGenerator::AddLineList(int numVerts, int indexOffset) { u16 *outInds = inds_; + numVerts &= ~1; for (int i = 0; i < numVerts; i += 2) { *outInds++ = indexOffset + i; *outInds++ = indexOffset + i + 1;