From e13094766d51c970deb2a00800e4dd033af25665 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Tue, 22 Nov 2022 17:49:49 -0800 Subject: [PATCH] Fix VertexLoader.cpp using the wrong size for texture matrix indices without a corresponding texture This regressed in 0a906f553fe7699d1c863a464211f74b6c306a0f, I think (though I haven't confirmed it). Mario Tennis and Luigi's Mansion both use these for some reason (as far as I can tell, the data isn't actually used; it's just extra data included for no reason) --- Source/Core/VideoCommon/VertexLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/VertexLoader.cpp b/Source/Core/VideoCommon/VertexLoader.cpp index bc97ac041d..c2d3c1bd29 100644 --- a/Source/Core/VideoCommon/VertexLoader.cpp +++ b/Source/Core/VideoCommon/VertexLoader.cpp @@ -221,7 +221,7 @@ void VertexLoader::CompileVertexTranslator() WriteCall(VertexLoader_TextCoord::GetDummyFunction()); // important to get indices right! break; } - else if (m_VtxDesc.low.TexMatIdx[i]) + else if (m_VtxDesc.low.TexMatIdx[j]) { has_more = true; }