Fix VertexLoader.cpp using the wrong size for texture matrix indices without a corresponding texture

This regressed in 0a906f553f, 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)
This commit is contained in:
Pokechu22 2022-11-22 17:49:49 -08:00
parent 0bcd3c79bb
commit e13094766d

View File

@ -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;
}